huangjiajun пре 12 часа
родитељ
комит
a6463c9fb1
1 измењених фајлова са 5 додато и 5 уклоњено
  1. +5
    -5
      app/hdl/setCenter/web/hdl_basic.go

+ 5
- 5
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


Loading…
Откажи
Сачувај