diff --git a/app/Admin/Actions/Order/RowWxShareFinish.php b/app/Admin/Actions/Order/RowWxShareFinish.php index 2034d28b..f8fff230 100644 --- a/app/Admin/Actions/Order/RowWxShareFinish.php +++ b/app/Admin/Actions/Order/RowWxShareFinish.php @@ -23,7 +23,7 @@ class RowWxShareFinish extends RowAction return $this->response()->error(data_get($result, 'err_code') . ':' . data_get($result, 'err_code_des')); } $attributes = ['finish_sn' => $sn, 'status' => 'N']; - $order->update($order->wx_share ? array_merge($order->wx_share, $attributes) : $attributes); + $order->update(['wx_share' => $order->wx_share ? array_merge($order->wx_share, $attributes) : $attributes]); return $this->response()->success('成功!'); } diff --git a/app/Listeners/OrderDistribute.php b/app/Listeners/OrderDistribute.php index 4a55fcd6..a4d6028c 100644 --- a/app/Listeners/OrderDistribute.php +++ b/app/Listeners/OrderDistribute.php @@ -50,7 +50,7 @@ class OrderDistribute logger()->error('微信分账-解冻资金失败', $result); } else { $attributes = ['finish_sn' => $sn, 'status' => 'N']; - $order->update($order->wx_share ? array_merge($order->wx_share, $attributes) : $attributes); + $order->update(['wx_share' => $order->wx_share ? array_merge($order->wx_share, $attributes) : $attributes]); } } } catch (Exception $e) { diff --git a/app/Services/DistributeService.php b/app/Services/DistributeService.php index 0b262f13..d3c2b32c 100644 --- a/app/Services/DistributeService.php +++ b/app/Services/DistributeService.php @@ -242,7 +242,7 @@ class DistributeService $result = (new WxpayService())->share($order->out_trade_no, $sn, $receivers); $attributes = ['share_sn' => $sn, 'status' => 'N']; - $order->update($order->wx_share ? array_merge($order->wx_share, $attributes) : $attributes); + $order->update(['wx_share' => $order->wx_share ? array_merge($order->wx_share, $attributes) : $attributes]); $status = data_get($result, 'status'); if ($status == 'FINISHED') {