|
|
@@ -50,7 +50,17 @@ func (u UserAppDomainDb) GetUserAppDomain(masterId int) (m *model.UserAppDomain, |
|
|
|
} |
|
|
|
return m, nil |
|
|
|
} |
|
|
|
|
|
|
|
func (u UserAppDomainDb) GetUserAppDomainByPlatform(masterId int, platform string) (m *model.UserAppDomain, err error) { |
|
|
|
m = new(model.UserAppDomain) |
|
|
|
has, err := u.Db.Where("uuid =? and type=? and is_ssl=1", masterId, platform, 1).Get(m) |
|
|
|
if err != nil { |
|
|
|
return nil, zhios_order_relate_logx.Error(err) |
|
|
|
} |
|
|
|
if has == false { |
|
|
|
return nil, nil |
|
|
|
} |
|
|
|
return m, nil |
|
|
|
} |
|
|
|
func (u UserAppDomainDb) UserAppDomainInsert(m *model.UserAppDomain) (int64, error) { |
|
|
|
insertAffected, err := u.Db.InsertOne(m) |
|
|
|
if err != nil { |
|
|
|