Browse Source

update

three
DengBiao 1 year ago
parent
commit
161ef4323d
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      consume/zhios_user_visit_ip_address_consume.go

+ 6
- 1
consume/zhios_user_visit_ip_address_consume.go View File

@@ -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)
}

Loading…
Cancel
Save