diff --git a/includes/Api/AIToolboxBot/ApiReportUsage.php b/includes/Api/AIToolboxBot/ApiReportUsage.php index 6f76a3b..42dd2a5 100644 --- a/includes/Api/AIToolboxBot/ApiReportUsage.php +++ b/includes/Api/AIToolboxBot/ApiReportUsage.php @@ -118,7 +118,7 @@ class ApiReportUsage extends ApiBase { return false; } - $pointTransactionId = $pointService->startConsumePointsTransaction($pointUsage); + $pointTransactionId = $pointService->startConsumePointsTransaction($pointUsage, 600, 'isekai-ai-toolbox', $userAction); $data['pointtransaction'] = $pointTransactionId; } @@ -275,7 +275,7 @@ class ApiReportUsage extends ApiBase { return false; } - $ret = $pointService->consumePoints($pointUsage, true); + $ret = $pointService->consumePoints($pointUsage, true, false, 'isekai-ai-toolbox', $userAction); if (!$ret) { $this->addWarning('apiwarn-isekai-ai-toolbox-pointtransactionfailed', 'pointtransactionfailed'); $isSuccess = false;