Merge branch 'main'

main
落雨楓 8 months ago
commit 2b61773595

@ -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;

Loading…
Cancel
Save