WIN-2308041133\Administrator 6 月之前
父节点
当前提交
9e5fc03bc8
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 1 1
      application/api/controller/Lave.php
  2. 3 2
      extend/liuniu/WechatService.php

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

@@ -370,7 +370,7 @@ class Lave extends Api
 //        $plan_id = $sign_info['plan_id'];
 //        $contract_code = $sign_info['contract_code'];
         $rs = WechatService::querySign($mch_id, $where['contract_code'], $where['plan_id']);
-        @file_put_contents("quanju.txt", json_encode($rs) . "-查询签约状态返回结果\r\n", 8);
+
 //        if ($rs['return_code'] == 'SUCCESS') {
 //            if ($rs['contract_state'] == 1) {
 //                WechatPlanRecord::where('cid',$cid)->where('uid', $uid)->where('is_signing', 1)->update(['is_signing' => 0]);

+ 3 - 2
extend/liuniu/WechatService.php

@@ -573,13 +573,14 @@ class WechatService
      */
     public static function querySign($mch_id,$contract_code,$pan_id,$version='1.0',$options=[],$cid=0)
     {
-        $app_id='wx5681205d1ef4d9d3';
-        $order = array_merge(compact('app_id','mch_id','contract_code','pan_id','version'), $options);
+        $appid='wx5681205d1ef4d9d3';
+        $order = array_merge(compact('appid','mch_id','contract_code','pan_id','version'), $options);
 //        if ($order['detail'] == '') unset($order['detail']);
 //        $order['notify_url']=Request::instance()->domain() . "/api/wechat/notify/" . $cid;
         $result = self::payment(false, $cid)->contract->query(
             $order
         );
+        @file_put_contents("quanju.txt", json_encode($result) . "-查询签约状态返回结果\r\n", 8);
         return $result;
     }
 }