We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd5ba48 commit 651f3e8Copy full SHA for 651f3e8
1 file changed
src/Client.php
@@ -35,12 +35,17 @@ class Client
35
/**
36
* @var string API版本
37
*/
38
- public $version = '2016-11-01';
+ public $version = 'v2';
39
40
41
* @var string 网关地址
42
43
- public $baseUri = 'http://live.aliyuncs.com/';
+ public $baseUri;
44
+
45
+ /**
46
+ * @var HttpClient
47
+ */
48
+ private $_httpClient;
49
50
51
* Client constructor.
@@ -58,7 +63,9 @@ public function __construct($config = [])
58
63
if (empty ($this->accessSecret)) {
59
64
throw new \Exception ('The "accessSecret" property must be set.');
60
65
}
61
-
66
+ if (empty ($this->baseUri)) {
67
+ throw new \Exception ('The "baseUri" property must be set.');
68
+ }
62
69
if (empty ($this->appName)) {
70
throw new \Exception ('The "appName" property must be set.');
71
0 commit comments