Merge branch 'main'

main
落雨楓 8 months ago
commit 2b61773595

@ -118,7 +118,7 @@ class ApiReportUsage extends ApiBase {
return false; return false;
} }
$pointTransactionId = $pointService->startConsumePointsTransaction($pointUsage); $pointTransactionId = $pointService->startConsumePointsTransaction($pointUsage, 600, 'isekai-ai-toolbox', $userAction);
$data['pointtransaction'] = $pointTransactionId; $data['pointtransaction'] = $pointTransactionId;
} }
@ -275,7 +275,7 @@ class ApiReportUsage extends ApiBase {
return false; return false;
} }
$ret = $pointService->consumePoints($pointUsage, true); $ret = $pointService->consumePoints($pointUsage, true, false, 'isekai-ai-toolbox', $userAction);
if (!$ret) { if (!$ret) {
$this->addWarning('apiwarn-isekai-ai-toolbox-pointtransactionfailed', 'pointtransactionfailed'); $this->addWarning('apiwarn-isekai-ai-toolbox-pointtransactionfailed', 'pointtransactionfailed');
$isSuccess = false; $isSuccess = false;

Loading…
Cancel
Save