优化
This commit is contained in:
parent
d21e004be7
commit
5d05c936c7
|
@ -64,9 +64,9 @@ func (l *UserLogoTemplateTagSetLogic) UserLogoTemplateTagSet(req *types.UserLogo
|
|||
var userInfo = &gmodel.FsUserInfo{}
|
||||
BuilderDB := tx.Model(&gmodel.FsUserInfo{}).Where("module = ?", module)
|
||||
if userId > 0 {
|
||||
BuilderDB.Where("user_id=?", userId)
|
||||
BuilderDB = BuilderDB.Where("user_id=?", userId)
|
||||
} else {
|
||||
BuilderDB.Where("guest_id=?", guestId)
|
||||
BuilderDB = BuilderDB.Where("guest_id=?", guestId)
|
||||
}
|
||||
userInfoFirstRes := BuilderDB.First(userInfo)
|
||||
err := userInfoFirstRes.Error
|
||||
|
|
Loading…
Reference in New Issue
Block a user