feat : coupon
This commit is contained in:
@@ -81,7 +81,11 @@ trait GoodOrderTrait
|
||||
$this->orderInfo->status = OrderCode::PAYED;
|
||||
$this->orderInfo->pay_time = date('Y-m-d H:i:s');
|
||||
|
||||
if (!$this->orderInfo->save()) {
|
||||
$updateGoods = $this->orderGoodModel->where('order_id',$this->orderInfo->id)->update([
|
||||
'status' => OrderCode::PAYED,
|
||||
]);
|
||||
|
||||
if (!$this->orderInfo->save() || !$updateGoods) {
|
||||
$this->log->debug(__CLASS__.':Function:manageOrder:更新充值订单的状态失败:'.$this->orderInfo->id);
|
||||
throw new ErrException('更新充值订单的状态失败');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user