活动:添加返回参数
This commit is contained in:
@@ -102,7 +102,12 @@ export class LimitPackageHandler {
|
|||||||
let result = await addReward(roleId, roleName, sid, serverId, funcs, rewardArray);
|
let result = await addReward(roleId, roleName, sid, serverId, funcs, rewardArray);
|
||||||
|
|
||||||
await ActivityShopModel.addRecord(activityId, roleId, roundIndex, id);
|
await ActivityShopModel.addRecord(activityId, roleId, roundIndex, id);
|
||||||
return resResult(STATUS.SUCCESS, Object.assign(result, {}));
|
|
||||||
|
item.buyCount += 1;
|
||||||
|
return resResult(STATUS.SUCCESS, Object.assign(result, {
|
||||||
|
param: { activityId, roundIndex, id },
|
||||||
|
item: item
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,9 @@ export class MonthlyTicketHandler {
|
|||||||
|
|
||||||
let result = await getPlayerMonthlyTicketDayReward(roleId, roleName, sid, serverId, funcs, activityId)
|
let result = await getPlayerMonthlyTicketDayReward(roleId, roleName, sid, serverId, funcs, activityId)
|
||||||
if (result) {
|
if (result) {
|
||||||
return resResult(STATUS.SUCCESS, result);
|
return resResult(STATUS.SUCCESS, Object.assign(result, {
|
||||||
|
param: { activityId },
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
return resResult(STATUS.NO_MOTHLY_TICKET_REWARD);
|
return resResult(STATUS.NO_MOTHLY_TICKET_REWARD);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -181,11 +181,11 @@ export class GrowthData extends ActivityBase {
|
|||||||
let index = data.findIndex(record => { return obj.dayIndex == record.dayIndex && obj.cellIndex == record.cellIndex })
|
let index = data.findIndex(record => { return obj.dayIndex == record.dayIndex && obj.cellIndex == record.cellIndex })
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
obj.totalCount = data[index].totalCount ? data[index].totalCount : 0;
|
obj.totalCount = data[index].totalCount ? data[index].totalCount : 0;
|
||||||
|
|
||||||
obj.receiveRewardCount = data[index].receiveRewardCount ? data[index].receiveRewardCount : 0;
|
obj.receiveRewardCount = data[index].receiveRewardCount ? data[index].receiveRewardCount : 0;
|
||||||
} else {
|
}
|
||||||
if (obj.taskType === TASK_TYPE.HERO_NUM) {
|
if (obj.taskType === TASK_TYPE.HERO_NUM) {
|
||||||
obj.totalCount = heroNum;
|
obj.totalCount = heroNum;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user