1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-07-24 08:31:45 +08:00
Signed-off-by: lecjy <565572696@qq.com>
This commit is contained in:
lecjy 2023-11-04 14:17:15 +08:00
parent fe6ca09a21
commit b3c0daac7e

View File

@ -130,9 +130,10 @@ public class OnlineUserController extends Handler {
}
agentUserContactsRes.findOneByUserid(
userid).ifPresent(p -> {
map.put("contacts", contactsRes.findById(p.getContactsid()).orElse(null));
agentUserContactsRes.findOneByUserid(userid).ifPresent(p -> {
if (p.getContactsid() != null) {
map.put("contacts", contactsRes.findById(p.getContactsid()).orElse(null));
}
});
AgentService service = agentServiceRes.findById(agentservice).orElse(null);
if (service != null) {