Skip to content

Commit

Permalink
Merge pull request #2 from bangbangda/develop
Browse files Browse the repository at this point in the history
配置文件增加接口地址,切换测试环境更方便。
  • Loading branch information
bangbangda committed Sep 19, 2019
2 parents 1b270e7 + a4a93c4 commit 07ccf32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Support/HttpClient.php
Expand Up @@ -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')
Expand Down
4 changes: 4 additions & 0 deletions src/config/ibarrel.php
@@ -1,6 +1,10 @@
<?php

return [
// 应用编号
'app_id' => '',
// 应用密钥
'app_secret' => '',
// 应用请求地址
'api_domain' => ''
];

0 comments on commit 07ccf32

Please sign in to comment.