no message

This commit is contained in:
hellcat 2025-10-11 17:50:12 +08:00
parent 8dfe371a8b
commit 9821837473

View File

@ -835,13 +835,14 @@ final class Cron
try {
DB::beginTransaction();
$invoice = (new Invoice())->where('order_id', $oOrder->id)->first();
if ($invoice === null) {
DB::commit();
continue;
}
DB::beginTransaction();
// 付款完成后
if (in_array($invoice->status, ['paid_gateway', 'paid_balance', 'paid_admin'])) {
@ -901,8 +902,6 @@ final class Cron
$invoice->update_time = time();
$invoice->save();
self::_helper_log("已取消超时账单".$oOrder->id);
if ($invoice->money_use > 0) {
$iUserMoneyOld = $oUser->money;
$oUser->money += $invoice->money_use;
@ -916,6 +915,8 @@ final class Cron
);
}
self::_helper_log("已取消超时账单".$oOrder->id);
}
DB::commit();