no message
This commit is contained in:
parent
5eef683a13
commit
e65e70a64e
@ -835,15 +835,14 @@ final class Cron
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
DB::beginTransaction();
|
|
||||||
|
|
||||||
$invoice = (new Invoice())->where('order_id', $oOrder->id)->first();
|
$invoice = (new Invoice())->where('order_id', $oOrder->id)->first();
|
||||||
|
|
||||||
if ($invoice === null) {
|
if ($invoice === null) {
|
||||||
DB::commit();
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DB::beginTransaction();
|
||||||
|
|
||||||
// 付款完成后
|
// 付款完成后
|
||||||
if (in_array($invoice->status, ['paid_gateway', 'paid_balance', 'paid_admin'])) {
|
if (in_array($invoice->status, ['paid_gateway', 'paid_balance', 'paid_admin'])) {
|
||||||
|
|
||||||
@ -900,7 +899,11 @@ final class Cron
|
|||||||
|
|
||||||
$invoice->status = 'cancelled';
|
$invoice->status = 'cancelled';
|
||||||
$invoice->update_time = time();
|
$invoice->update_time = time();
|
||||||
echo $invoice->save();
|
$invoice->save();
|
||||||
|
|
||||||
|
$oOrder->status = 'cancelled';
|
||||||
|
$oOrder->update_time = time();
|
||||||
|
$oOrder->save();
|
||||||
|
|
||||||
if ($invoice->money_use > 0) {
|
if ($invoice->money_use > 0) {
|
||||||
$iUserMoneyOld = $oUser->money;
|
$iUserMoneyOld = $oUser->money;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user