From b7341ce5c4e0feaddf489d5c7f4a936567b0f7a3 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Fri, 26 Apr 2024 11:38:46 +0800 Subject: [PATCH] update --- rule/mw/mw_db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rule/mw/mw_db.go b/rule/mw/mw_db.go index d41ada8..5b4d6d3 100644 --- a/rule/mw/mw_db.go +++ b/rule/mw/mw_db.go @@ -27,7 +27,7 @@ func GetMasterId(baseDb *xorm.Engine, c *gin.Context) (masterId string) { masterId = svc.GetWebSiteDomainMasterId(baseDb, md.PLATFORM_WAP, c.Request.Host) } } - if masterId == "" && c.GetHeader("Platform") == md.PLATFORM_WAP { // H5 要根据域名去获取mid + if masterId == "" && c.GetHeader("Platform") == md.PLATFORM_PC { // H5 要根据域名去获取mid hostList := strings.Split(c.Request.Host, ".") if isNumeric(hostList[0]) { masterId = hostList[0]