From 3bd123adbfd5c15403b463619fed3fbd5e880309 Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Thu, 17 Aug 2023 20:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E7=A7=AF=E5=88=86=E7=B1=BB=E5=9E=8B=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/Api/AIToolboxBot/ApiReportUsage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Api/AIToolboxBot/ApiReportUsage.php b/includes/Api/AIToolboxBot/ApiReportUsage.php index 506355e..6a1d4c8 100644 --- a/includes/Api/AIToolboxBot/ApiReportUsage.php +++ b/includes/Api/AIToolboxBot/ApiReportUsage.php @@ -132,7 +132,7 @@ class ApiReportUsage extends ApiBase { return false; } - $pointTransactionId = $pointService->startConsumePointsTransaction($pointCost); + $pointTransactionId = $pointService->startConsumePointsTransaction($pointCost, 600, 'isekai-ai-toolbox', $userAction); $data['pointtransaction'] = $pointTransactionId; } @@ -290,7 +290,7 @@ class ApiReportUsage extends ApiBase { return false; } - $ret = $pointService->consumePoints($pointCost, true); + $ret = $pointService->consumePoints($pointCost, true, false, 'isekai-ai-toolbox', $userAction); if (!$ret) { $this->addWarning('apiwarn-isekai-ai-toolbox-pointtransactionfailed', 'pointtransactionfailed'); $isSuccess = false;