no message
This commit is contained in:
parent
5eef683a13
commit
e65e70a64e
@ -835,15 +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'])) {
|
||||
|
||||
@ -900,7 +899,11 @@ final class Cron
|
||||
|
||||
$invoice->status = 'cancelled';
|
||||
$invoice->update_time = time();
|
||||
echo $invoice->save();
|
||||
$invoice->save();
|
||||
|
||||
$oOrder->status = 'cancelled';
|
||||
$oOrder->update_time = time();
|
||||
$oOrder->save();
|
||||
|
||||
if ($invoice->money_use > 0) {
|
||||
$iUserMoneyOld = $oUser->money;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user