|
@@ -353,15 +353,16 @@ public class WxaUserApiController extends WxaController {
|
|
String content = sService.checkCodeStore(phone,code);
|
|
String content = sService.checkCodeStore(phone,code);
|
|
if (content == null) {
|
|
if (content == null) {
|
|
renderJson(ErrorConstant.ERROR_SMS_CODE_ERR);
|
|
renderJson(ErrorConstant.ERROR_SMS_CODE_ERR);
|
|
- return;
|
|
|
|
- }
|
|
|
|
- LoginBean loginBean = sService.checkCode(openid,phone);
|
|
|
|
- if (loginBean != null) {
|
|
|
|
- loginBean.setSessionId(sessionId);
|
|
|
|
- renderJson(new ResultBean(loginBean));
|
|
|
|
- } else {
|
|
|
|
- renderJson(ErrorConstant.ERROR_DOCTOR_NOT_FIND);
|
|
|
|
|
|
+ }else {
|
|
|
|
+ LoginBean loginBean = sService.checkCode(openid,phone);
|
|
|
|
+ if (loginBean != null) {
|
|
|
|
+ loginBean.setSessionId(sessionId);
|
|
|
|
+ renderJson(new ResultBean(loginBean));
|
|
|
|
+ } else {
|
|
|
|
+ renderJson(ErrorConstant.ERROR_DOCTOR_NOT_FIND);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|