libo лет назад: 4
Родитель
Сommit
1fe1d258b8

+ 5 - 5
src/main/java/com/tdba/cxb/ares/api/model/BindUserAdd.java

@@ -16,7 +16,7 @@ public class BindUserAdd {
16 16
 
17 17
     /** 手机号*/
18 18
     @NotEmpty(message = "手机号不能为空")
19
-    private String mobile;
19
+    private String phone;
20 20
 
21 21
     /** 验证码*/
22 22
     @NotEmpty(message = "验证码不能为空")
@@ -30,12 +30,12 @@ public class BindUserAdd {
30 30
         this.name = name;
31 31
     }
32 32
 
33
-    public String getMobile() {
34
-        return mobile;
33
+    public String getPhone() {
34
+        return phone;
35 35
     }
36 36
 
37
-    public void setMobile(String mobile) {
38
-        this.mobile = mobile;
37
+    public void setPhone(String phone) {
38
+        this.phone = phone;
39 39
     }
40 40
 
41 41
     public String getCode() {

+ 2 - 2
src/main/java/com/tdba/cxb/ares/api/service/UserService.java

@@ -377,9 +377,9 @@ public class UserService {
377 377
 //        if(!param.getCode().equals("" + stringRedisTemplate.opsForValue().get("api.auth.sms." + param.getMobile()))){
378 378
 //            throw new TDBAException("短信验证码有误");
379 379
 //        }
380
-        redisTemplate.delete("api.auth.sms." + param.getMobile());
380
+        redisTemplate.delete("api.auth.sms." + param.getPhone());
381 381
 
382
-        UserVo userVo = userMapper.selectByAccountForSimple(param.getMobile());
382
+        UserVo userVo = userMapper.selectByAccountForSimple(param.getPhone());
383 383
         Objects.requireNonNull(userVo, "该手机号未在【储蓄宝App】内注册,请先注册后再绑定");
384 384
 
385 385
         if(userVo.getId().equals(baseUser.getId())){