----bug
This commit is contained in:
@@ -1229,6 +1229,11 @@ func UpdateUserLastInfo(ctx *jxcontext.Context, storeID, brandID int) (err error
|
||||
_, err = dao.UpdateEntity(db, user, "LastStoreID")
|
||||
}
|
||||
|
||||
// 不应该出现这种情况,0表示未找到,1表示找到,其他值为门店ID,表示锁定店铺。
|
||||
if user.LastBrandID > 1 && user.LastBrandID != storeID {
|
||||
brandID = 0
|
||||
}
|
||||
|
||||
if brandID != user.LastBrandID {
|
||||
user.LastBrandID = brandID
|
||||
_, err = dao.UpdateEntity(db, user, "LastBrandID")
|
||||
|
||||
Reference in New Issue
Block a user