作者 何书鹏

骑手提现

... ... @@ -381,6 +381,8 @@ class Rider extends Api
$config = Service::getConfig('wechat');
$config['app_id'] = $config['miniapp_id'];
$config['cert_path'] = $config['cert_client'];
$config['key_path'] = $config['cert_key'];
$app = Factory::payment($config);
$result = $app->transfer->toBalance([
'partner_trade_no' => $order_sn, // 商户订单号,需保持唯一性(只能是字母或者数字,不能包含有符号)
... ... @@ -394,7 +396,6 @@ class Rider extends Api
if($result['result_code'] != 'SUCCESS'){
$this->error($result['err_code_des']);
}
// 记录企业付款单号
$withdraw->payment_no = $result['payment_no'];
$withdraw->payment_time = $result['payment_time'];
... ...