Commit 04fc2b2e authored by 徐州's avatar 徐州

解决部分bug

parent 32d1aff2
...@@ -357,8 +357,10 @@ public class CustomerWechat implements ICustomerWechat { ...@@ -357,8 +357,10 @@ public class CustomerWechat implements ICustomerWechat {
try { try {
House365RestObject<CustomerEntity> data = doGetHotLineCustomer(map); House365RestObject<CustomerEntity> data = doGetHotLineCustomer(map);
if(entity.getShowMobile() != 1) { if(entity.getShowMobile() != 1) {
if(data != null && data.getEntity() != null) { if(data.getList() != null) {
data.getEntity().setPhone(MobileUtil.hidePhone(data.getEntity().getPhone())); for (int i = 0; i < data.getList().size(); i++) {
data.getList().get(i).setPhone(MobileUtil.hidePhone(data.getList().get(i).getPhone()));
}
} }
} }
response.setResult(ReturnAppResult.APP_SUCCESS.getResultCode()); response.setResult(ReturnAppResult.APP_SUCCESS.getResultCode());
......
...@@ -278,8 +278,10 @@ public class ProjectWechat implements IProjectWechat { ...@@ -278,8 +278,10 @@ public class ProjectWechat implements IProjectWechat {
try { try {
House365RestObject<CustomerEntity> data = doGetCustomers(map); House365RestObject<CustomerEntity> data = doGetCustomers(map);
if(entity.getShowMobile() != 1) { if(entity.getShowMobile() != 1) {
if(data != null && data.getEntity() != null) { if(data.getList() != null) {
data.getEntity().setPhone(MobileUtil.hidePhone(data.getEntity().getPhone())); for (int i = 0; i < data.getList().size(); i++) {
data.getList().get(i).setPhone(MobileUtil.hidePhone(data.getList().get(i).getPhone()));
}
} }
} }
response.setResult(ReturnAppResult.APP_SUCCESS.getResultCode()); response.setResult(ReturnAppResult.APP_SUCCESS.getResultCode());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment