活动:首冲领取奖励后添加字段
This commit is contained in:
@@ -73,11 +73,16 @@ export class FirstGiftHandler {
|
||||
for (let item of items) {
|
||||
rewardArray = rewardArray.concat(stringToRewardParam(item.reward))
|
||||
indexArray.push(item.index)
|
||||
item.isReceive = true;
|
||||
}
|
||||
let result = await addReward(roleId, roleName, sid, serverId, funcs, rewardArray);
|
||||
|
||||
await ActivityFirstGiftModel.addRecord(activityId, roleId, indexArray);
|
||||
return resResult(STATUS.SUCCESS, Object.assign(result, {}));
|
||||
|
||||
return resResult(STATUS.SUCCESS, Object.assign(result, {
|
||||
param: { activityId },
|
||||
items: items
|
||||
}));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user