Browse Source

update

master
dengbiao 8 months ago
parent
commit
b7341ce5c4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      rule/mw/mw_db.go

+ 1
- 1
rule/mw/mw_db.go View File

@@ -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]


Loading…
Cancel
Save