Commit 25ed29612b376a2cee6195ec9cdef21eb0a15c1b

Authored by 张志伟
1 parent 83992e1a

:sparkles: feat(*): 优化会员手机号获取

-  优化会员手机号获取
fw-shirasawa-rpc/src/main/java/cn/fw/shirasawa/rpc/member/dto/MemberUserDTO.java
... ... @@ -28,6 +28,10 @@ public class MemberUserDTO implements Serializable {
28 28 */
29 29 private String latestAccountPhone;
30 30 /**
  31 + * 最近一个号码
  32 + */
  33 + private String latestAccountOldPhone;
  34 + /**
31 35 * 姓名
32 36 */
33 37 private String realName;
... ... @@ -58,6 +62,13 @@ public class MemberUserDTO implements Serializable {
58 62  
59 63  
60 64 public String getPhone() {
61   - return latestAccountPhone;
  65 + String phone = this.latestAccountPhone;
  66 + if (phone == null || phone.isEmpty() || phone.equals("#")) {
  67 + phone = this.latestAccountOldPhone;
  68 + }
  69 + if (phone == null || phone.isEmpty()) {
  70 + return "#";
  71 + }
  72 + return phone;
62 73 }
63 74 }
... ...