|
|
|
@ -67,7 +67,7 @@ public class CustomerServiceServiceImpl implements CustomerServiceService {
|
|
|
|
|
account = managerMapper.findDetail(account.getString("manager_id"));
|
|
|
|
|
isPartner = false;
|
|
|
|
|
}
|
|
|
|
|
String uid = account.getString("username") + (isPartner ? "(" + client.getString("client_moniker") + ")" : "");
|
|
|
|
|
String uid = account.getString("username") + (isPartner ? "_"+ client.getString("client_moniker"): "");
|
|
|
|
|
JSONObject saveRecord = new JSONObject();
|
|
|
|
|
saveRecord.put("nick", account.getString("display_name"));
|
|
|
|
|
saveRecord.put("password", DigestUtils.md5Hex("uid"));
|
|
|
|
@ -97,7 +97,7 @@ public class CustomerServiceServiceImpl implements CustomerServiceService {
|
|
|
|
|
}
|
|
|
|
|
OpenimUserVO result = new OpenimUserVO();
|
|
|
|
|
result.setNick(account.getString("display_name"));
|
|
|
|
|
result.setUserid(account.getString("username") + "(" + client.getString("client_moniker") + ")");
|
|
|
|
|
result.setUserid(account.getString("username") + "_" + client.getString("client_moniker"));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -121,8 +121,8 @@ public class CustomerServiceServiceImpl implements CustomerServiceService {
|
|
|
|
|
List<JSONObject> result = new ArrayList<>(accounts.size());
|
|
|
|
|
accounts.forEach(p -> {
|
|
|
|
|
JSONObject openimUser = new JSONObject();
|
|
|
|
|
openimUser.put("userid", p.getString("username") + "(" + p.getString("client_moniker") + ")");
|
|
|
|
|
openimUser.put("nick", p.getString("username") + "(" + p.getString("client_moniker") + ")");
|
|
|
|
|
openimUser.put("userid", p.getString("username") + "_" + p.getString("client_moniker"));
|
|
|
|
|
openimUser.put("nick", p.getString("username") + "_" + p.getString("client_moniker"));
|
|
|
|
|
openimUser.put("headimg", p.getString("wechat_headimg"));
|
|
|
|
|
result.add(openimUser);
|
|
|
|
|
});
|
|
|
|
|