|
@@ -139,7 +139,7 @@ func GetWeekInfo(dateStr string) (string, string, string, string) { |
|
|
return utils.IntToStr(year), utils.IntToStr(week), weekStart.Format("2006-01-02"), weekEnd.Format("2006-01-02") |
|
|
return utils.IntToStr(year), utils.IntToStr(week), weekStart.Format("2006-01-02"), weekEnd.Format("2006-01-02") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func DownUrl(c *gin.Context) (string, string) { |
|
|
|
|
|
|
|
|
func DownUrl(c *gin.Context) (string, string, string) { |
|
|
downDomainStr := GetSysCfgStr("down_web_domain") |
|
|
downDomainStr := GetSysCfgStr("down_web_domain") |
|
|
registerDomainStr := GetSysCfgStr("down_register_domain") |
|
|
registerDomainStr := GetSysCfgStr("down_register_domain") |
|
|
var downDomainArr = make([]string, 0) |
|
|
var downDomainArr = make([]string, 0) |
|
@@ -168,12 +168,15 @@ func DownUrl(c *gin.Context) (string, string) { |
|
|
} |
|
|
} |
|
|
downUrl := "" |
|
|
downUrl := "" |
|
|
registerUrl := "" |
|
|
registerUrl := "" |
|
|
|
|
|
registerUrl1 := "" |
|
|
if downDomain != "" { |
|
|
if downDomain != "" { |
|
|
downUrl = fmt.Sprintf("%s%s%s", "https://", downDomain, "/#/pages/down-page/down-page?type=download") |
|
|
downUrl = fmt.Sprintf("%s%s%s", "https://", downDomain, "/#/pages/down-page/down-page?type=download") |
|
|
} |
|
|
} |
|
|
if registerDomain != "" { |
|
|
if registerDomain != "" { |
|
|
registerUrl = fmt.Sprintf("%s%s%s", "https://", registerDomain, "/#/pages/down-page/down-page?type=") |
|
|
registerUrl = fmt.Sprintf("%s%s%s", "https://", registerDomain, "/#/pages/down-page/down-page?type=") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return downUrl, registerUrl |
|
|
|
|
|
|
|
|
if registerDomain != "" { |
|
|
|
|
|
registerUrl1 = fmt.Sprintf("%s%s%s", "https://", registerDomain, "/#/pages/down-page/down-page?type=") |
|
|
|
|
|
} |
|
|
|
|
|
return downUrl, registerUrl, registerUrl1 |
|
|
} |
|
|
} |