Merge branch 'bugfix' into dev
This commit is contained in:
commit
4e435c4ed9
@ -57,6 +57,8 @@ export default async function (call: ApiCall<ReqChangePos, ResChangePos>) {
|
||||
}
|
||||
fightHeros.push(hero.heroId.toString());
|
||||
|
||||
fightHeros = await checkFightHerosAndFix(call.uid, heroPos, fightHeros)
|
||||
|
||||
Wjjl.setVal(call.uid, 'fight_hero_colour_4', fightHeros.map(id => G.gc.hero[id].colour).filter(c => c >= 4).length);
|
||||
|
||||
let checkMatrixPos = HeroFun.checkMatrixPosAndChange(call, heroPos, matrixPos)
|
||||
@ -66,3 +68,11 @@ export default async function (call: ApiCall<ReqChangePos, ResChangePos>) {
|
||||
call.conn.refreshPower();
|
||||
kfjsFun.setHeroLvCount(call)
|
||||
}
|
||||
|
||||
async function checkFightHerosAndFix(uid, heroPos, fightHeros) {
|
||||
if (fightHeros.length == R.values(heroPos).length) {
|
||||
return fightHeros
|
||||
}
|
||||
let heros = await HeroFun.getHeros({uid}, R.values(heroPos));
|
||||
return heros.map(i => i.heroId)
|
||||
}
|
@ -181,6 +181,10 @@ export class PayFun {
|
||||
return;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 不要轻易改动这个方法,不允许集成业务逻辑在内部
|
||||
* 如果有业务逻辑通过事件驱动,在支付成功后emit事件
|
||||
*/
|
||||
|
||||
let conf: any = await this.getConf(payId, payArgs);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user