Commit fe6448a9 authored by 徐州's avatar 徐州

修改app部分接口

parent d7a44a4e
...@@ -298,7 +298,6 @@ public class UserImpl implements IUser { ...@@ -298,7 +298,6 @@ public class UserImpl implements IUser {
response.setResultCode(ReturnResult.FAIL.getResultCode()); response.setResultCode(ReturnResult.FAIL.getResultCode());
response.setResultMessage(ex.getMessage()); response.setResultMessage(ex.getMessage());
} }
logger.error("数据库登录查询:" + response.getObjectList().toString());
return response; return response;
} }
......
...@@ -330,10 +330,14 @@ public class ProjectWechat implements IProjectWechat { ...@@ -330,10 +330,14 @@ public class ProjectWechat implements IProjectWechat {
// 取得所需参数 // 取得所需参数
Map<String, Object> map = parameter.getArgs(); Map<String, Object> map = parameter.getArgs();
House365RestResponse<CustomerEntity> response = new House365RestResponse<>(); House365RestResponse<CustomerEntity> response = new House365RestResponse<>();
String phone = getMapValueByKey(Constant.CUSTOMER_PHONE, map, "");
UserEntity entity = getUserEntity(phone);
// 业务层统一处理 // 业务层统一处理
try { try {
House365RestObject<CustomerEntity> data = doGetCustomerDetail(map); House365RestObject<CustomerEntity> data = doGetCustomerDetail(map);
if(entity.getShowMobile() != 1) {
data.getEntity().setPhone(MobileUtil.hidePhone(data.getEntity().getPhone()));
}
response.setResult(ReturnAppResult.APP_SUCCESS.getResultCode()); response.setResult(ReturnAppResult.APP_SUCCESS.getResultCode());
response.setMsg(ReturnAppResult.APP_SUCCESS.getResultMessage()); response.setMsg(ReturnAppResult.APP_SUCCESS.getResultMessage());
response.setData(data); response.setData(data);
...@@ -626,7 +630,8 @@ public class ProjectWechat implements IProjectWechat { ...@@ -626,7 +630,8 @@ public class ProjectWechat implements IProjectWechat {
// 取得所需参数 // 取得所需参数
Map<String, Object> map = parameter.getArgs(); Map<String, Object> map = parameter.getArgs();
House365RestResponse<CustomerEntity> response = new House365RestResponse<>(); House365RestResponse<CustomerEntity> response = new House365RestResponse<>();
String phone = getMapValueByKey(Constant.CUSTOMER_PHONE, map, "");
UserEntity entity = getUserEntity(phone);
// 业务层统一处理 // 业务层统一处理
try { try {
House365RestObject object = new House365RestObject(); House365RestObject object = new House365RestObject();
...@@ -660,6 +665,9 @@ public class ProjectWechat implements IProjectWechat { ...@@ -660,6 +665,9 @@ public class ProjectWechat implements IProjectWechat {
url = MemoryPropertyPlaceholderConfigurer.getContextProperty("CRM.TOUCH.HOST") + jsonObject.get("data"); url = MemoryPropertyPlaceholderConfigurer.getContextProperty("CRM.TOUCH.HOST") + jsonObject.get("data");
} }
} }
if(entity.getShowMobile() == 1) {
url += "&showMobile=1";
}
LOGGER.info("getCRMCustomerURL :{},url:{}", res, url); LOGGER.info("getCRMCustomerURL :{},url:{}", res, url);
} catch (Exception e) { } catch (Exception e) {
......
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