From a4a93c4a3b3bb65e39f936e13052c743aff28404 Mon Sep 17 00:00:00 2001 From: HaoLiang Date: Thu, 19 Sep 2019 16:12:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80=EF=BC=8C=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83=E6=9B=B4=E6=96=B9?= =?UTF-8?q?=E4=BE=BF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Support/HttpClient.php | 4 ++++ src/config/ibarrel.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Support/HttpClient.php b/src/Support/HttpClient.php index 0d67b65..12e2d31 100644 --- a/src/Support/HttpClient.php +++ b/src/Support/HttpClient.php @@ -11,6 +11,10 @@ class HttpClient public function __construct(array $config) { $this->config = $config; + + if (isset($this->config['api_domain'])) { + $this->apiDomain = $this->config['api_domain']; + } } public function request(array $params, $method = 'post', string $uri = '/v1/Openapi/wine') diff --git a/src/config/ibarrel.php b/src/config/ibarrel.php index 51e9858..478b006 100644 --- a/src/config/ibarrel.php +++ b/src/config/ibarrel.php @@ -1,6 +1,10 @@ '', + // 应用密钥 'app_secret' => '', + // 应用请求地址 + 'api_domain' => '' ];