File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments