6
0
Fork 0

wx_share finish

base
panliang 2023-10-23 13:46:29 +08:00
parent 853e82eae7
commit 88487aaacd
3 changed files with 3 additions and 3 deletions

View File

@ -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('成功!');
}

View File

@ -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) {

View File

@ -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') {