File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,14 @@ class Client
4141 */
4242 public $ accessSecret ;
4343
44+ /**
45+ * @var string API版本
46+ */
47+ public $ version = '2016-11-01 ' ;
48+
49+ /**
50+ * @var string 网关地址
51+ */
4452 public $ baseUri = 'http://live.aliyuncs.com/ ' ;
4553
4654 /**
@@ -70,6 +78,7 @@ public function getHttpClient()
7078 $ middleware = new Rpc ([
7179 'accessKeyId ' => $ this ->accessKeyId ,
7280 'accessSecret ' => $ this ->accessSecret ,
81+ 'Version ' => $ this ->version
7382 ]);
7483 $ stack ->push ($ middleware );
7584
@@ -92,6 +101,6 @@ public function getHttpClient()
92101 */
93102 public function createRequest (array $ params )
94103 {
95- return $ this ->getHttpClient ()->get ('/ ' ,['query ' => $ params ]);
104+ return $ this ->getHttpClient ()->get ('/ ' , ['query ' => $ params ]);
96105 }
97106}
You can’t perform that action at this time.
0 commit comments