update environment

This commit is contained in:
wyh 2023-11-22 13:25:20 +08:00
parent 8bee9bb982
commit 99f5f249a7
2 changed files with 16 additions and 10 deletions

View File

@ -26,13 +26,18 @@ func init() {
if baseURL == "" {
baseURL = "https://api2.hik-cloud.com/oauth"
}
// clientID = os.Getenv("HIK_IOT_CLIENTID")
// clientSecret = os.Getenv("HIK_IOT_CLIENTSECRET")
// scope = os.Getenv("HIK_IOT_SCOPE")
clientID = "164edfd71b744dd88c945dbd5ae30a9a"
clientSecret = "2f580d932d7d46029a2091ece681035c"
scope = "yy"
clientID = os.Getenv("HIK_IOT_CLIENTID")
if clientID == "" {
clientID = "164edfd71b744dd88c945dbd5ae30a9a"
}
clientSecret = os.Getenv("HIK_IOT_CLIENTSECRET")
if clientSecret == "" {
clientSecret = "2f580d932d7d46029a2091ece681035c"
}
scope = os.Getenv("HIK_IOT_SCOPE")
if scope == "" {
scope = "yy"
}
}
// 基础云眸http请求

View File

@ -1,10 +1,11 @@
### 海康云眸平台(iot)
##### 配置环境变量已
```
environment:
clientID = os.Getenv("HIK_IOT_CLIENTID")
clientSecret = os.Getenv("HIK_IOT_CLIENTSECRET")
scope = os.Getenv("HIK_IOT_SCOPE")
clientID = os.Getenv("HIK_IOT_CLIENTID")
clientSecret = os.Getenv("HIK_IOT_CLIENTSECRET")
scope = os.Getenv("HIK_IOT_SCOPE")
```
- 基础管理
- - 分组管理