----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")
|
_, err = dao.UpdateEntity(db, user, "LastStoreID")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 不应该出现这种情况,0表示未找到,1表示找到,其他值为门店ID,表示锁定店铺。
|
||||||
|
if user.LastBrandID > 1 && user.LastBrandID != storeID {
|
||||||
|
brandID = 0
|
||||||
|
}
|
||||||
|
|
||||||
if brandID != user.LastBrandID {
|
if brandID != user.LastBrandID {
|
||||||
user.LastBrandID = brandID
|
user.LastBrandID = brandID
|
||||||
_, err = dao.UpdateEntity(db, user, "LastBrandID")
|
_, err = dao.UpdateEntity(db, user, "LastBrandID")
|
||||||
|
|||||||
Reference in New Issue
Block a user