mirror of
https://github.com/chatopera/cosin.git
synced 2025-07-16 00:22:22 +08:00
Merge pull request #962 from lecjy/feature/955
fix #955 https://github.com/cskefu/cskefu/issues/955
This commit is contained in:
commit
c74018a75b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user