优化error输出
This commit is contained in:
@@ -18,7 +18,7 @@ const (
|
||||
targetDeletePath = "/saas/target/delete"
|
||||
bindSetPath = "/saas/bind/set"
|
||||
bindDeletePath = "/saas/bind/delete"
|
||||
scriptRunPath = "/saas/script/run"
|
||||
scriptDebugPath = "/saas/script/debug"
|
||||
scriptCreatePath = "/saas/script/create"
|
||||
scriptListPath = "/saas/script/list"
|
||||
scriptDeletePath = "/saas/script/delete"
|
||||
@@ -57,7 +57,7 @@ type ApiUrls struct {
|
||||
TargetDeletePath string
|
||||
BindSetPath string
|
||||
BindDeletePath string
|
||||
ScriptRunPath string
|
||||
ScriptDebugPath string
|
||||
ScriptCreatePath string
|
||||
ScriptListPath string
|
||||
ScriptDeletePath string
|
||||
@@ -162,10 +162,10 @@ func InitAPIUrl(c *ApiUrls) *ApiUrls {
|
||||
r.BindDeletePath = bindDeletePath
|
||||
}
|
||||
|
||||
if c.ScriptRunPath != "" {
|
||||
r.ScriptRunPath = c.ScriptRunPath
|
||||
if c.ScriptDebugPath != "" {
|
||||
r.ScriptDebugPath = c.ScriptDebugPath
|
||||
} else {
|
||||
r.ScriptRunPath = scriptRunPath
|
||||
r.ScriptDebugPath = scriptDebugPath
|
||||
}
|
||||
|
||||
if c.ScriptCreatePath != "" {
|
||||
|
||||
Reference in New Issue
Block a user