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

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

@@ -1,5 +1,7 @@
1 1
 package com.tdba.cxb.ares.api.model;
2 2
 
3
+import com.tdba.cxb.ares.api.util.Sensitive;
4
+
3 5
 /**
4 6
  * @program: order-web
5 7
  * @description: 登录用户
@@ -15,6 +17,7 @@ public class UserVo {
15 17
     private String name;
16 18
 
17 19
     /** 手机号*/
20
+    @Sensitive
18 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 88
                         .withDate(localDate)
89 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 93
                     resultList.add(UserCount.UserCountBuilder.anUserCount()
94 94
                             .withCreate_time(currentTime)