fix:
修复悬赏任务一键领取3倍奖励逻辑错误
This commit is contained in:
parent
dda879b037
commit
3898cee713
@ -38,9 +38,7 @@ export default async function (call: ApiCall<ReqAllGet, ResAllGet>) {
|
|||||||
}
|
}
|
||||||
// XstaskFun.delTask(call.uid, task._id);
|
// XstaskFun.delTask(call.uid, task._id);
|
||||||
XstaskFun.changeInfo(call.uid, change);
|
XstaskFun.changeInfo(call.uid, change);
|
||||||
await PlayerFun.sendPrize(call, taskConf.prize);
|
|
||||||
HongDianChange.sendChangeKey(call.uid, ['xstaskhd', 'huodonghd']);
|
HongDianChange.sendChangeKey(call.uid, ['xstaskhd', 'huodonghd']);
|
||||||
|
|
||||||
if (!tequan) {
|
if (!tequan) {
|
||||||
prizeArr.push(...taskConf.prize)
|
prizeArr.push(...taskConf.prize)
|
||||||
} else {
|
} else {
|
||||||
@ -50,6 +48,7 @@ export default async function (call: ApiCall<ReqAllGet, ResAllGet>) {
|
|||||||
}
|
}
|
||||||
// prizeArr.push(...taskConf.prize)
|
// prizeArr.push(...taskConf.prize)
|
||||||
}
|
}
|
||||||
|
if (prizeArr.length > 0) await PlayerFun.sendPrize(call, prizeArr);
|
||||||
call.succ({
|
call.succ({
|
||||||
taskList: await XstaskFun.getAllTask(call.uid),
|
taskList: await XstaskFun.getAllTask(call.uid),
|
||||||
prize: PublicShared.mergePrize(prizeArr)
|
prize: PublicShared.mergePrize(prizeArr)
|
||||||
|
Loading…
Reference in New Issue
Block a user