|
|
@@ -447,6 +447,7 @@ public class ModelServlet extends HttpServlet {
|
|
|
DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou", "PXzJyah5rZfWHIIH", "e1MS6j0wypXJrw8CM0hObZu8qKbfah");
|
|
|
IAcsClient client = new DefaultAcsClient(profile);
|
|
|
String phone = CommentUtils.myToString(request.getParameter("phone"));
|
|
|
+ log("phone: " + phone);
|
|
|
|
|
|
CommonRequest rq = new CommonRequest();
|
|
|
rq.setMethod(MethodType.POST);
|
|
|
@@ -460,6 +461,7 @@ public class ModelServlet extends HttpServlet {
|
|
|
try {
|
|
|
CommonResponse rs = client.getCommonResponse(rq);
|
|
|
if (rs.getHttpStatus() == 200) {
|
|
|
+ log(rs.getData());
|
|
|
com.alibaba.fastjson.JSONObject jsonObject = com.alibaba.fastjson.JSONObject.parseObject(rs.getData());
|
|
|
if (!"ok".equalsIgnoreCase(jsonObject.getString("Code"))) {
|
|
|
resultJson.put("msg", Constants.success);
|