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;