Skip to content

Commit 651f3e8

Browse files
committed
完善
1 parent bd5ba48 commit 651f3e8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/Client.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,17 @@ class Client
3535
/**
3636
* @var string API版本
3737
*/
38-
public $version = '2016-11-01';
38+
public $version = 'v2';
3939

4040
/**
4141
* @var string 网关地址
4242
*/
43-
public $baseUri = 'http://live.aliyuncs.com/';
43+
public $baseUri;
44+
45+
/**
46+
* @var HttpClient
47+
*/
48+
private $_httpClient;
4449

4550
/**
4651
* Client constructor.
@@ -58,7 +63,9 @@ public function __construct($config = [])
5863
if (empty ($this->accessSecret)) {
5964
throw new \Exception ('The "accessSecret" property must be set.');
6065
}
61-
66+
if (empty ($this->baseUri)) {
67+
throw new \Exception ('The "baseUri" property must be set.');
68+
}
6269
if (empty ($this->appName)) {
6370
throw new \Exception ('The "appName" property must be set.');
6471
}

0 commit comments

Comments
 (0)