🐞 fix(recordBattleCheat): 添加secV为null保护
This commit is contained in:
@@ -541,7 +541,7 @@ export class NormalBattleHandler {
|
|||||||
let roleName = session.get('roleName');
|
let roleName = session.get('roleName');
|
||||||
let sid = session.get('sid');
|
let sid = session.get('sid');
|
||||||
|
|
||||||
const rec = await BattleCheatRecModel.createRecord(dataId, type, iKey, value, secV, roleId, roleName);
|
const rec = await BattleCheatRecModel.createRecord(dataId || 0, type, iKey || 0, value || 0, secV || 0, roleId, roleName);
|
||||||
if (!rec) {
|
if (!rec) {
|
||||||
return resResult(STATUS.BATTLE_CHECK_REC_SAVE_ERR);
|
return resResult(STATUS.BATTLE_CHECK_REC_SAVE_ERR);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user