----bug of user find shops
This commit is contained in:
@@ -1223,10 +1223,19 @@ func UpdateUserLastInfo(ctx *jxcontext.Context, storeID, brandID int) (err error
|
||||
db = dao.GetDB()
|
||||
)
|
||||
if user, err := dao.GetUserByID(db, "user_id", ctx.GetUserID()); err == nil {
|
||||
//扫码进店后,关联了店铺后,进入模板店,会刷新成模板店,这个号码只能看模板店了。
|
||||
// 上次看到的是模板店,初始化为未进过任何店.Shi
|
||||
if storeID == 102919 {
|
||||
storeID = 0
|
||||
}
|
||||
if storeID != 0 {
|
||||
user.LastStoreID = storeID
|
||||
_, err = dao.UpdateEntity(db, user, "LastStoreID")
|
||||
}
|
||||
// 上次看到的是模板店,初始化为未进过任何店.Shi
|
||||
if brandID == 102919 {
|
||||
brandID = 0
|
||||
}
|
||||
if brandID != 0 {
|
||||
user.LastBrandID = brandID
|
||||
_, err = dao.UpdateEntity(db, user, "LastBrandID")
|
||||
|
||||
Reference in New Issue
Block a user