From 3898cee713ad28279984761e3a2cbc489bcef57e Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 28 Dec 2023 11:11:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=82=AC=E8=B5=8F?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E4=B8=80=E9=94=AE=E9=A2=86=E5=8F=963?= =?UTF-8?q?=E5=80=8D=E5=A5=96=E5=8A=B1=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api_s2c/xstask/ApiAllGet.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api_s2c/xstask/ApiAllGet.ts b/src/api_s2c/xstask/ApiAllGet.ts index 360b994..71e2ebe 100644 --- a/src/api_s2c/xstask/ApiAllGet.ts +++ b/src/api_s2c/xstask/ApiAllGet.ts @@ -38,9 +38,7 @@ export default async function (call: ApiCall) { } // XstaskFun.delTask(call.uid, task._id); XstaskFun.changeInfo(call.uid, change); - await PlayerFun.sendPrize(call, taskConf.prize); HongDianChange.sendChangeKey(call.uid, ['xstaskhd', 'huodonghd']); - if (!tequan) { prizeArr.push(...taskConf.prize) } else { @@ -50,6 +48,7 @@ export default async function (call: ApiCall) { } // prizeArr.push(...taskConf.prize) } + if (prizeArr.length > 0) await PlayerFun.sendPrize(call, prizeArr); call.succ({ taskList: await XstaskFun.getAllTask(call.uid), prize: PublicShared.mergePrize(prizeArr)