wx_share finish
parent
853e82eae7
commit
88487aaacd
|
|
@ -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('成功!');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue