diff --git a/app/hdl/setCenter/web/hdl_basic.go b/app/hdl/setCenter/web/hdl_basic.go index 9b7de78..f68a06a 100644 --- a/app/hdl/setCenter/web/hdl_basic.go +++ b/app/hdl/setCenter/web/hdl_basic.go @@ -85,12 +85,10 @@ 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, - DownWebOpen: downWebOpen, + WebDomain: tmp, } e.OutSuc(c, resp, nil) } @@ -113,7 +111,6 @@ 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 } @@ -132,8 +129,10 @@ func GetRegisterDomainBasic(c *gin.Context) { domain := svc.GetSysCfgStr("down_register_domain") var tmp = make([]string, 0) json.Unmarshal([]byte(domain), &tmp) + downWebOpen := svc.GetSysCfgStr("down_web_open") resp := setCenter.WebDomainBasicReq{ - WebDomain: tmp, + WebDomain: tmp, + DownWebOpen: downWebOpen, } e.OutSuc(c, resp, nil) } @@ -155,6 +154,7 @@ func SetRegisterDomainBasic(c *gin.Context) { e.OutErr(c, e.ERR_INVALID_ARGS, err1.Error()) return } + svc.SetSysCfgStr("down_web_open", req.DownWebOpen) svc.SetSysCfgStr("down_register_domain", utils.SerializeStr(req.WebDomain)) e.OutSuc(c, "success", nil) return