WIN-2308041133\Administrator 8 meses atrás
pai
commit
20a917b05c

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

@@ -432,7 +432,7 @@ class Lave extends Api
             ], $request
         );
         $mch_id = Company::where('id', $where['cid'])->value('pay_weixin_mchid');
-        $this->success('获取成功', WechatService::querycontract($mch_id,$where['contract_id'],'','',$where['cid']));
+        $this->success('获取成功', WechatService::querycontract($mch_id,$where['contract_id'],'1.0',[],$where['cid']));
     }
 }
 

+ 1 - 1
extend/liuniu/WechatService.php

@@ -650,7 +650,7 @@ class WechatService
         $order = array_merge(compact('appid','mch_id','contract_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->querycontract(
+        $result = self::payment(false, $cid)->order->querycontract(
             $order
         );
 //        @file_put_contents("quanju.txt", json_encode($result) . "-查询签约状态返回结果\r\n", 8);

+ 0 - 15
vendor/overtrue/wechat/src/Payment/Contract/Client.php

@@ -99,19 +99,4 @@ class Client extends BaseClient
 
         return $this->safeRequest('papay/deletecontract', $params);
     }
-    /**
-     * querycontract papay.
-     *
-     * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
-     *
-     * @throws \EasyWeChat\Kernel\Exceptions\InvalidArgumentException
-     * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException
-     * @throws \GuzzleHttp\Exception\GuzzleException
-     */
-    public function querycontract(array $params)
-    {
-        $params['appid'] = $this->app['config']->app_id;
-
-        return $this->safeRequest('papay/querycontract', $params);
-    }
 }

+ 13 - 0
vendor/overtrue/wechat/src/Payment/Order/Client.php

@@ -116,4 +116,17 @@ class Client extends BaseClient
 
         return $this->request($this->wrap('pay/closeorder'), $params);
     }
+    /**
+     * @return ResponseInterface|Collection|array|object|string
+     *
+     * @throws \EasyWeChat\Kernel\Exceptions\InvalidArgumentException
+     * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException
+     * @throws \GuzzleHttp\Exception\GuzzleException
+     */
+    public function querycontract(array $params)
+    {
+        $params['appid'] = $this->app['config']->app_id;
+
+        return $this->request($this->wrap('pay/querycontract'), $params);
+    }
 }