🐞 fix(gvg): 修改动态
This commit is contained in:
@@ -16,7 +16,7 @@ import { GVGLeaguePrepareModel } from "../../../db/GVGLeaguePrepare";
|
||||
import { createGroupMsg, pushGroupMsgToRoom } from "../../../services/chatService";
|
||||
import { sendMailByContent, sendMailToGuildByContent, sendMailToLeagueByContent } from "../../../services/mailService";
|
||||
import { getGVGCities } from "../../../services/gvg/gvgBattleService";
|
||||
import { changeNoticeMessage, guildQuitLeagueRecord } from "../../../services/gvg/gvgRecService";
|
||||
import { addLeagueRenameRecord, changeNoticeMessage, guildQuitLeagueRecord } from "../../../services/gvg/gvgRecService";
|
||||
import { LeagueLeader } from "../../../domain/rank";
|
||||
|
||||
export default function (app: Application) {
|
||||
@@ -613,6 +613,7 @@ export class GVGManageHandler {
|
||||
myLeague = await GVGLeagueModel.setInfo(targetLeagueCode, name, notice, icon);
|
||||
if(name != undefined) {
|
||||
await updateUserInfo(REDIS_KEY.LEAGUE_INFO, myLeague.leagueCode, [{ field: 'name', value: name }]);
|
||||
addLeagueRenameRecord(myLeague.leagueCode, name);
|
||||
}
|
||||
if(icon != undefined) {
|
||||
await updateUserInfo(REDIS_KEY.LEAGUE_INFO, myLeague.leagueCode, [{ field: 'icon', value: name }]);
|
||||
|
||||
Reference in New Issue
Block a user