|
@@ -688,6 +688,9 @@ class PaymentService extends BaseService
|
|
|
// 添加分账插件配置
|
|
// 添加分账插件配置
|
|
|
$pay->pay($plugin, $data);
|
|
$pay->pay($plugin, $data);
|
|
|
|
|
|
|
|
|
|
+ $config = ConfigService::make()->getConfigOptionByGroup(6);
|
|
|
|
|
+ $minAppid = isset($config['wxpay_min_appid']) ? $config['wxpay_min_appid'] : '';
|
|
|
|
|
+
|
|
|
// 分账数据
|
|
// 分账数据
|
|
|
$transactionId = isset($order['transaction_id'])? $order['transaction_id'] : ''; // 支付交易单号
|
|
$transactionId = isset($order['transaction_id'])? $order['transaction_id'] : ''; // 支付交易单号
|
|
|
$profitsharingOrderNo = isset($order['out_order_no'])? $order['out_order_no'] : ''; // 分账单号,非支付单号
|
|
$profitsharingOrderNo = isset($order['out_order_no'])? $order['out_order_no'] : ''; // 分账单号,非支付单号
|
|
@@ -695,6 +698,7 @@ class PaymentService extends BaseService
|
|
|
$amount = isset($order['amount'])? $order['amount'] : ''; // 分账金额
|
|
$amount = isset($order['amount'])? $order['amount'] : ''; // 分账金额
|
|
|
$unsplit = isset($order['unsplit'])? $order['unsplit'] : true; // 是否限制只分账一次
|
|
$unsplit = isset($order['unsplit'])? $order['unsplit'] : true; // 是否限制只分账一次
|
|
|
$postData = [
|
|
$postData = [
|
|
|
|
|
+ 'appid' => $minAppid,
|
|
|
'transaction_id' => $transactionId,
|
|
'transaction_id' => $transactionId,
|
|
|
'out_order_no' => $profitsharingOrderNo,
|
|
'out_order_no' => $profitsharingOrderNo,
|
|
|
'receivers' => [
|
|
'receivers' => [
|