WIN-2308041133\Administrator 8 ماه پیش
والد
کامیت
9ca0542f1e

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

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

@@ -99,4 +99,19 @@ 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);
+    }
 }

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

@@ -116,17 +116,4 @@ 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);
-    }
 }