fix:
王者荣耀发奖定时器容错修改
This commit is contained in:
parent
7eec14188f
commit
a7f527bf09
@ -230,7 +230,7 @@ export class EmailFun {
|
||||
})).insertedId.toHexString();
|
||||
sendEmail._id = _id;
|
||||
|
||||
G.server.broadcastMsg('msg_s2c/Email', sendEmail);
|
||||
G.server?.broadcastMsg('msg_s2c/Email', sendEmail);
|
||||
|
||||
return _id;
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ export class SchedulerWzryDlDjinji extends SchedulerWzryAutoBaoMing {
|
||||
}
|
||||
let _userList = []
|
||||
//0号位 -1的这一条,表示晋级奖励
|
||||
let prize = G.gc.wangzherongyao.wangzhe.jiangli.dld[0].p
|
||||
let prize = G.gc.wangzherongyao.wangzhe.jiangli.dld[0]?.p || []
|
||||
|
||||
for (let index = 0; index < _zuanshiUser.length; index++) {
|
||||
const element = _zuanshiUser[index];
|
||||
@ -306,7 +306,7 @@ export class SchedulerWzryZuanshiSendPrize extends SchedulerWzryAutoBaoMing {
|
||||
_u.push(element.uid)
|
||||
if (element.data.player.uid.indexOf('npc_') != -1) continue
|
||||
if (element?.isprize?.[this.typeprzie]) continue
|
||||
let prize = _prizeCon[this.idx[element.deep]].p
|
||||
let prize = _prizeCon[this.idx[element.deep]]?.p || [];
|
||||
|
||||
//注意:这里的调用addEmail时,cross参数用的是true
|
||||
//因为这个定时器是在跨服上执行的,邮件先临时放到跨服
|
||||
|
Loading…
Reference in New Issue
Block a user