✨ feat(好友切磋): a7befab5f到f5146b93d
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user