✨ feat(好友切磋): a7befab5f到f5146b93d

This commit is contained in:
luying
2023-09-11 18:42:57 +08:00
parent ab4ac34184
commit 92a10011ed
8 changed files with 108 additions and 3 deletions
+5
View File
@@ -1027,6 +1027,11 @@ export function checkRouteParam(route: string, msg: any) {
if (!checkNaturalNumbers(msg.index)) return false;
break;
}
case "battle.friendBattleHandler.getFriendOpp":
{
if (!checkNaturalStrings(msg.roleId)) return false;
break;
}
case "chat.chatHandler.sendGroupMessage":
{
let { channel, type, content, targetRoleId, targetMsgCode } = msg;
+6 -2
View File
@@ -443,8 +443,12 @@ export async function getLadderOppDetailData(rec: LadderMatchRecType) {
}
export async function pushLadderIconShow(roleId: string, ladderIconShow:boolean) {
console.log('-x-11111x--x-x-x-x-x-xx- roleId', roleId)
console.log('-x-x--x11111-x-x-x-x-xx- ladderIconShow', ladderIconShow)
if (!roleId) return;
await pushIconShow(roleId, ladderIconShow);
}
export async function getIsExistLadderDefense(roleId: string) {
let ladderData = await LadderMatchModel.findByRoleId(roleId);
if (!ladderData || !ladderData.defense || !ladderData.defense.heroes) return false;
return true;
}