wesmiler 1 tháng trước cách đây
mục cha
commit
fa3deeb213
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      app/Services/PaymentService.php

+ 4 - 0
app/Services/PaymentService.php

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