|
@@ -368,11 +368,11 @@ public class WxaUserApiController extends WxaController {
|
|
|
return;
|
|
|
}
|
|
|
JSONObject sessionResult = JSON.parseObject(sessionJson);
|
|
|
- renderJson(sessionResult);
|
|
|
-// // 获取sessionKey
|
|
|
-// String openid = sessionResult.getString("openid");
|
|
|
-// SmsService sService = ServiceFactory.getService(SmsService.class);
|
|
|
-// String content = sService.checkCodeStore(phone,code);
|
|
|
+ // 获取sessionKey
|
|
|
+ String openid = sessionResult.getString("openid");
|
|
|
+ SmsService sService = ServiceFactory.getService(SmsService.class);
|
|
|
+ String content = sService.checkCodeStore(phone,code);
|
|
|
+ renderText(content);
|
|
|
// if (content == null) {
|
|
|
// renderJson(ErrorConstant.ERROR_SMS_CODE_ERR);
|
|
|
// }else {
|