From 161ef4323d9445823d81680933ce9944bacd34b5 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 7 Mar 2023 23:10:40 +0800 Subject: [PATCH] update --- consume/zhios_user_visit_ip_address_consume.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/consume/zhios_user_visit_ip_address_consume.go b/consume/zhios_user_visit_ip_address_consume.go index 039e649..8dcf77a 100644 --- a/consume/zhios_user_visit_ip_address_consume.go +++ b/consume/zhios_user_visit_ip_address_consume.go @@ -12,6 +12,7 @@ import ( "errors" "fmt" "github.com/streadway/amqp" + "strings" "time" "xorm.io/xorm" ) @@ -150,7 +151,11 @@ func GetWebSiteDomainMasterId(host string) string { obj := new(model.UserAppDomain) has, err := db.Db.Where("domain=?", host).Get(obj) if err != nil || !has { - return "" + hostList := strings.Split(host, ":") + has, err = db.Db.Where("domain=?", hostList[0]).Get(obj) + if err != nil || !has { + return "" + } } return utils.AnyToString(obj.Uuid) }