✨ feat(好友切磋): a7befab5f到f5146b93d
This commit is contained in:
@@ -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