修改字段
This commit is contained in:
@@ -42,7 +42,7 @@ export class NormalBattleHandler {
|
||||
}
|
||||
|
||||
let dailyNum = {};
|
||||
if(warInfo.war_type == WAR_TYPE.DAILY) {
|
||||
if(warInfo.warType == WAR_TYPE.DAILY) {
|
||||
let checkResult = await checkDaily(roleId, battleId, 1);
|
||||
if(checkResult.status == -1) {
|
||||
return {code: 202, data: checkResult.msg}
|
||||
@@ -55,7 +55,7 @@ export class NormalBattleHandler {
|
||||
roleId, roleName, battleId,
|
||||
status: 0,
|
||||
warName: warInfo.gk_name,
|
||||
warType: warInfo.war_type,
|
||||
warType: warInfo.warType,
|
||||
record: { heroes }
|
||||
}
|
||||
}, true);
|
||||
@@ -123,7 +123,7 @@ export class NormalBattleHandler {
|
||||
}
|
||||
|
||||
let dailyNum = {};
|
||||
if(warInfo.war_type == WAR_TYPE.DAILY) {
|
||||
if(warInfo.warType == WAR_TYPE.DAILY) {
|
||||
let checkResult = await checkDailyAndIncrease(roleId, battleId, 1, false);
|
||||
if(checkResult.status == -1) {
|
||||
return {code: 202, data: checkResult.msg}
|
||||
@@ -203,7 +203,7 @@ export class NormalBattleHandler {
|
||||
|
||||
// 扫荡次数
|
||||
let dailyNum = {};
|
||||
if(warInfo.war_type == WAR_TYPE.DAILY) {
|
||||
if(warInfo.warType == WAR_TYPE.DAILY) {
|
||||
let checkResult = await checkDailyAndIncrease(roleId, battleId, count, true);
|
||||
if(checkResult.status == -1) {
|
||||
return {code: 202, data: checkResult.msg}
|
||||
@@ -220,7 +220,7 @@ export class NormalBattleHandler {
|
||||
$set: {
|
||||
roleName,
|
||||
warName: warInfo.gk_name,
|
||||
warType: warInfo.war_type
|
||||
warType: warInfo.warType
|
||||
},
|
||||
$inc: { count }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user