From 753dd8decb63204f9ca592e0f6e70aaa2c355274 Mon Sep 17 00:00:00 2001 From: xcy <871622040@qq.com> Date: Fri, 22 Dec 2023 16:06:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=82=E6=AD=A5=E6=9F=A5=E5=BA=93?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=90=8C=E6=AD=A5=E6=8F=92=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api_s2c/pushgift/ApiOpen.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api_s2c/pushgift/ApiOpen.ts b/src/api_s2c/pushgift/ApiOpen.ts index 58d85b2..399fb72 100644 --- a/src/api_s2c/pushgift/ApiOpen.ts +++ b/src/api_s2c/pushgift/ApiOpen.ts @@ -20,6 +20,7 @@ function chkBuyNum(gift_id: string, gift_info: Gift) { let conf = G.gc.tuisonglibao[gift_id]; for (let i = 0; i < conf.payId.length; i++) { let pay = G.gc.pay[conf.payId[i]]; + let buy = gift_info.buy.map(i => i != 0); if (pay.buys > 0 && gift_info.buy[i] < pay.buys) { return true }