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