修复未指定积分类型的错误

main
落雨楓 1 year ago
parent af11f0ce5d
commit 3bd123adbf

@ -132,7 +132,7 @@ class ApiReportUsage extends ApiBase {
return false; return false;
} }
$pointTransactionId = $pointService->startConsumePointsTransaction($pointCost); $pointTransactionId = $pointService->startConsumePointsTransaction($pointCost, 600, 'isekai-ai-toolbox', $userAction);
$data['pointtransaction'] = $pointTransactionId; $data['pointtransaction'] = $pointTransactionId;
} }
@ -290,7 +290,7 @@ class ApiReportUsage extends ApiBase {
return false; return false;
} }
$ret = $pointService->consumePoints($pointCost, true); $ret = $pointService->consumePoints($pointCost, 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