WIN-2308041133\Administrator 5 months ago
parent
commit
90340c9346
2 changed files with 3 additions and 3 deletions
  1. 1 1
      application/api/controller/Lave.php
  2. 2 2
      extend/liuniu/WechatService.php

+ 1 - 1
application/api/controller/Lave.php

@@ -336,7 +336,7 @@ class Lave extends Api
 //                $where1['help_id']='0';
                     $order = LaveMonthModel::create($where1);
 //            }
-                    $rs = WechatService::papPayApply($mch_id,$where1['order_id'], $where1['amount'], "lave", '月捐款', 'PAP', [], $cid,$v['contract_id']);
+                    $rs = WechatService::papPayApply($mch_id,$where1['order_id'], $where1['amount'], "lave", '月捐款', 'PAP', [], $cid,$v['contract_id'],$where1['order_name']);
 
                 }
             }

+ 2 - 2
extend/liuniu/WechatService.php

@@ -569,10 +569,10 @@ class WechatService
      * @param array $options
      * @return Order
      */
-    public static function papPayApply($mch_id,$out_trade_no, $total_fee, $attach, $detail = '', $trade_type = 'PAP', $options = [], $cid = 0,$contract_id='')
+    public static function papPayApply($mch_id,$out_trade_no, $total_fee, $attach, $detail = '', $trade_type = 'PAP', $options = [], $cid = 0,$contract_id='',$body='月捐款')
     {
         $total_fee = bcmul($total_fee, 100, 0);
-        $order = array_merge(compact('mch_id','out_trade_no', 'total_fee', 'attach', 'detail', 'trade_type','contract_id'), $options);
+        $order = array_merge(compact('mch_id','out_trade_no', 'total_fee', 'attach', 'detail', 'trade_type','contract_id','body'), $options);
         if ($order['detail'] == '') unset($order['detail']);
 //        $order['notify_url']=Request::instance()->domain() . "/api/wechat/notify/" . $cid;
         $result = self::payment(false, $cid)->contract->apply(