|
@@ -1219,7 +1219,14 @@ public class UserLogic {
|
|
|
.last("limit 1")
|
|
|
.one();
|
|
|
if (Objects.isNull(userWait)) {
|
|
|
- throw new RemoteServiceException("请输入正确师傅手机号");
|
|
|
+ final User user = userService.lambdaQuery().eq(User::getMobile, mobile)
|
|
|
+ .eq(User::getType, UserTypeEnum.WORKER.getKey())
|
|
|
+ .last("limit 1")
|
|
|
+ .one();
|
|
|
+
|
|
|
+ if (Objects.isNull(user)) {
|
|
|
+ throw new RemoteServiceException("请输入正确师傅手机号");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 向手机号发送验证码
|