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

+ 3 - 0
src/main/java/com/tdba/cxb/ares/api/model/UserVo.java

@@ -1,5 +1,7 @@
1
 package com.tdba.cxb.ares.api.model;
1
 package com.tdba.cxb.ares.api.model;
2
 
2
 
3
+import com.tdba.cxb.ares.api.util.Sensitive;
4
+
3
 /**
5
 /**
4
  * @program: order-web
6
  * @program: order-web
5
  * @description: 登录用户
7
  * @description: 登录用户
@@ -15,6 +17,7 @@ public class UserVo {
15
     private String name;
17
     private String name;
16
 
18
 
17
     /** 手机号*/
19
     /** 手机号*/
20
+    @Sensitive
18
     private String mobile;
21
     private String mobile;
19
 
22
 
20
     /** 用户头像*/
23
     /** 用户头像*/

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

@@ -88,7 +88,7 @@ public class UserService {
88
                         .withDate(localDate)
88
                         .withDate(localDate)
89
                         .build());
89
                         .build());
90
 
90
 
91
-                if(0 < num) {
91
+                if((0 < num) && list.stream().noneMatch(innerRow -> innerRow.getUid().equals(row.getSpread_uid()))) {
92
                     //推荐人
92
                     //推荐人
93
                     resultList.add(UserCount.UserCountBuilder.anUserCount()
93
                     resultList.add(UserCount.UserCountBuilder.anUserCount()
94
                             .withCreate_time(currentTime)
94
                             .withCreate_time(currentTime)