|
|
@@ -85,10 +85,12 @@ func SetBasic(c *gin.Context) { |
|
|
|
// @Router /api/settCenter/web/getDownDomainBasic [get] |
|
|
|
func GetDownDomainBasic(c *gin.Context) { |
|
|
|
domain := svc.GetSysCfgStr("down_web_domain") |
|
|
|
downWebOpen := svc.GetSysCfgStr("down_web_open") |
|
|
|
var tmp = make([]string, 0) |
|
|
|
json.Unmarshal([]byte(domain), &tmp) |
|
|
|
resp := setCenter.WebDomainBasicReq{ |
|
|
|
WebDomain: tmp, |
|
|
|
WebDomain: tmp, |
|
|
|
DownWebOpen: downWebOpen, |
|
|
|
} |
|
|
|
e.OutSuc(c, resp, nil) |
|
|
|
} |
|
|
@@ -111,6 +113,7 @@ func SetDownDomainBasic(c *gin.Context) { |
|
|
|
return |
|
|
|
} |
|
|
|
svc.SetSysCfgStr("down_web_domain", utils.SerializeStr(req.WebDomain)) |
|
|
|
svc.SetSysCfgStr("down_web_open", req.DownWebOpen) |
|
|
|
e.OutSuc(c, "success", nil) |
|
|
|
return |
|
|
|
} |
|
|
|