Skip to content

Commit 06bdc46

Browse files
committed
定义API版本,增加注释
1 parent e866c29 commit 06bdc46

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Client.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)