feat: 添加订单状态保存功能

This commit is contained in:
mkm 2024-09-05 10:31:29 +08:00
parent c2a617aca8
commit 1fbc0b6cee

View File

@ -76,6 +76,7 @@ class PayNotifyLogic extends BaseLogic
} }
// $order->money = $order['pay_price']; // $order->money = $order['pay_price'];
$order->paid = 1; $order->paid = 1;
$order->status = 1;
$order->pay_time = time(); $order->pay_time = time();
if (!$order->save()) { if (!$order->save()) {
throw new BusinessException('订单保存出错'); throw new BusinessException('订单保存出错');
@ -185,6 +186,7 @@ class PayNotifyLogic extends BaseLogic
} }
$order->money = $order['pay_price']; $order->money = $order['pay_price'];
$order->paid = 1; $order->paid = 1;
$order->status = 1;
$order->pay_time = time(); $order->pay_time = time();
if (!$order->save()) { if (!$order->save()) {
throw new \Exception('订单保存出错'); throw new \Exception('订单保存出错');