sdk:修改军团名时将玩家信息内的也修改下来

This commit is contained in:
luying
2021-11-17 14:20:36 +08:00
parent d3c23b72fa
commit 121d900e03
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -121,6 +121,7 @@ export async function treatGuildName(content: string) {
let chatSid = await getGuildChannelSid(params.code);
pinus.app.rpc.chat.guildRemote.updateInfo.toServer(chatSid, params.code, { name: newName }); // 军团推送
await updateUserInfo(REDIS_KEY.GUILD_INFO, params.code, [{ field: 'name', value: newName }]); // redis缓存信息
await RoleModel.updateGuildName(params.code, newName);
} else if (params.type == 2) { // 公会公告
await checkGuildName(params.code, params.serverId, undefined, '');