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'));
|
return $this->response()->error(data_get($result, 'err_code') . ':' . data_get($result, 'err_code_des'));
|
||||||
}
|
}
|
||||||
$attributes = ['finish_sn' => $sn, 'status' => 'N'];
|
$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('成功!');
|
return $this->response()->success('成功!');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ class OrderDistribute
|
||||||
logger()->error('微信分账-解冻资金失败', $result);
|
logger()->error('微信分账-解冻资金失败', $result);
|
||||||
} else {
|
} else {
|
||||||
$attributes = ['finish_sn' => $sn, 'status' => 'N'];
|
$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) {
|
} catch (Exception $e) {
|
||||||
|
|
|
||||||
|
|
@ -242,7 +242,7 @@ class DistributeService
|
||||||
$result = (new WxpayService())->share($order->out_trade_no, $sn, $receivers);
|
$result = (new WxpayService())->share($order->out_trade_no, $sn, $receivers);
|
||||||
|
|
||||||
$attributes = ['share_sn' => $sn, 'status' => 'N'];
|
$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');
|
$status = data_get($result, 'status');
|
||||||
if ($status == 'FINISHED') {
|
if ($status == 'FINISHED') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue