Browse Source

test

tags/v0.1.8
yuyuanshifu 4 years ago
parent
commit
f736f70112
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/modelarts/resty.go

+ 2
- 2
modules/modelarts/resty.go View File

@@ -21,7 +21,7 @@ const (

urlGetToken = "/v3/auth/tokens"
urlNotebook = "/demanager/instances"
urlQuaryNotebook = "/demanager/instances"
urlQueryNotebook = "/demanager/instances"
)
func getRestyClient() *resty.Client {
if restyClient == nil {
@@ -70,7 +70,7 @@ func getToken() error {
res, err := client.R().
SetHeader("Content-Type", "application/json").
SetBody(params).
Post(HOST + urlGetToken)
Post("https://iam-pub.cn-south-222.ai.pcl.cn/" + urlGetToken)
if err != nil {
return fmt.Errorf("resty getToken: %s", err)
}


Loading…
Cancel
Save