|
@@ -157,8 +157,10 @@ public class ApiCouponController extends ApiBaseAction {
|
|
|
}
|
|
|
// 校验短信码
|
|
|
SysSmsLogEntity smsLogVo = sysSmsLogService.querySmsCodeByUserId(loginUser.getId());
|
|
|
- if (null != smsLogVo && !smsLogVo.getSmsCode().equals(smscode) || smsLogVo.getSendStatus() == 0) {
|
|
|
- return toResponsFail("短信验证码错误");
|
|
|
+ if (null != smsLogVo) {
|
|
|
+ if(!smsLogVo.getSmsCode().equals(smscode) || smsLogVo.getSendStatus() == 0){
|
|
|
+ return toResponsFail("短信验证码错误");
|
|
|
+ }
|
|
|
}
|
|
|
// 更新手机号码
|
|
|
if (!StringUtils.isNullOrEmpty(phone)) {
|