This commit is contained in:
lightings 2023-07-24 14:08:02 +08:00
parent 12b4e1f775
commit b821c368f8
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,7 @@
// friendService.js
const friendDao = require('../dao/friendDao');
const userDao = require("../dao/userDao");
const guildDao = require("../dao/guildDao");
class FriendService {
@ -70,6 +71,8 @@ class FriendService {
for (const member of users) {
const list = await this.gcs.getMemberByUid(channelId, member.account_id);
member.online = list.length>0 ? 1 : 0;
const guildInfo = await guildDao.getGuildInfoByUID(member.account_id);
member.guildInfo = guildInfo;
// member.isMyFriend = await friendDao.isMyFriend(uid, member.account_id);
// member.isMyBlackUser = await friendDao.isMyBlackUser(uid, member.account_id);
}

View File

@ -5,9 +5,9 @@ const { Message } = require("./Message");
class TestBase {
constructor() {
this.port = 4999;
// this.host = "192.168.100.83";
this.host = "192.168.100.83";
// this.host = "62.234.46.11";
this.host = "r2.cebggame.com";
// this.host = "r2.cebggame.com";
this.stick = new Stick(1024);
this.stick.setMaxBodyLen(MaxBodyLen["32K"], true);