Commit e32e4782 authored by 徐州's avatar 徐州

修改详情隐藏手机的时机

parent 309dc174
......@@ -334,15 +334,9 @@ public class ProjectWechat implements IProjectWechat {
// 取得所需参数
Map<String, Object> map = parameter.getArgs();
House365RestResponse<CustomerEntity> response = new House365RestResponse<>();
String phone = getMapValueByKey(Constant.CUSTOMER_PHONE, map, "");
UserEntity entity = getUserEntity(phone);
// 业务层统一处理
try {
House365RestObject<CustomerEntity> data = doGetCustomerDetail(map);
System.out.println("=======================getCustomerDetail=======================\n" + JSONObject.fromObject(data).toString());
if(entity.getShowMobile() != 1) {
data.getEntity().setPhone(MobileUtil.hidePhone(data.getEntity().getPhone()));
}
response.setResult(ReturnAppResult.APP_SUCCESS.getResultCode());
response.setMsg(ReturnAppResult.APP_SUCCESS.getResultMessage());
response.setData(data);
......@@ -1922,6 +1916,9 @@ public class ProjectWechat implements IProjectWechat {
resultMap.put("logShowList", logShowList);
}
}
if(userEntity.getShowMobile() != 1) {
customerEntity.setPhone(MobileUtil.hidePhone(customerEntity.getPhone()));
}
resultMap.put("customer", customerEntity);
object.setEntity(resultMap);
return object;
......
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