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