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