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