|
@@ -564,7 +564,7 @@ public class PublicController extends BaseController {
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public Result getResetMCode(String mobile, Integer type) {
|
|
public Result getResetMCode(String mobile, Integer type) {
|
|
|
Result res = new Result();
|
|
Result res = new Result();
|
|
|
- if (null == userService.selectByMobieAndType(mobile.trim(), type)) {
|
|
|
|
|
|
|
+ if (userService.selectByMobieAndTypeCount(mobile.trim(), type)<1) {
|
|
|
res.getError().add(buildError(ErrorConstants.NON_REGISTER, "", "该用户未注册!"));
|
|
res.getError().add(buildError(ErrorConstants.NON_REGISTER, "", "该用户未注册!"));
|
|
|
return res;
|
|
return res;
|
|
|
}
|
|
}
|