Merge branch 'feature/purchase_record' into dev

This commit is contained in:
luofei 2023-07-08 14:38:35 +08:00
commit b1561f3a2e

View File

@ -2535,13 +2535,15 @@ class StoreOrderRepository extends BaseRepository
} else { } else {
$order->status = StoreOrder::STATUS_WAIT_PAY; $order->status = StoreOrder::STATUS_WAIT_PAY;
} }
$groupOrder->paid = 1;
$groupOrder->save();
$order->paid = 1;
$order->save(); $order->save();
Db::commit(); Db::commit();
} catch (\Exception $e) { } catch (\Exception $e) {
Db::rollback(); Db::rollback();
throw new Exception($e->getMessage()); throw new Exception($e->getMessage());
} }
} }
/** /**