|
@@ -99,4 +99,20 @@ class Client extends BaseClient
|
|
|
|
|
|
|
|
return $this->safeRequest('papay/deletecontract', $params);
|
|
return $this->safeRequest('papay/deletecontract', $params);
|
|
|
}
|
|
}
|
|
|
|
|
+ /**
|
|
|
|
|
+ * query papay contrace.
|
|
|
|
|
+ *
|
|
|
|
|
+ * @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 query(array $params)
|
|
|
|
|
+ {
|
|
|
|
|
+ $params['appid'] = $this->app['config']->app_id;
|
|
|
|
|
+ $params['mchid'] = $this->app['config']['mch_id'];
|
|
|
|
|
+ @file_put_contents("quanju.txt", json_encode($params) . "-查询接口传参\r\n", 8);
|
|
|
|
|
+ return $this->safeRequest('papay/querycontract', $params);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|