drew před 6 roky
rodič
revize
877bc5f531

+ 6 - 1
src/main/java/com/thmodel/servlet/model/ModelServlet.java

@@ -449,7 +449,12 @@ public class ModelServlet extends HttpServlet {
                 System.out.println("aaaaaa1");
                 DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou", "PXzJyah5rZfWHIIH", "e1MS6j0wypXJrw8CM0hObZu8qKbfah");
                 System.out.println("aaaaaa2");
-                IAcsClient client = new DefaultAcsClient(profile);
+                IAcsClient client = null;
+                try {
+                    client = new DefaultAcsClient(profile);
+                } catch (Exception e) {
+                    System.out.println(e);
+                }
                 System.out.println("aaaaaa3");
                 String phone = CommentUtils.myToString(request.getParameter("phone"));
                 System.out.println("phone: " + phone);