Merge branch 'feature/purchase_record' into dev
This commit is contained in:
commit
b1561f3a2e
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user