tempToken

This commit is contained in:
richboo111
2022-08-16 15:35:39 +08:00
parent 118b3ce011
commit 81b83c3f9b

View File

@@ -579,9 +579,9 @@ func (c *StoreController) SyncStoresCourierInfo() {
func (c *StoreController) GetStoreListByLocation() {
c.callGetStoreListByLocation(func(params *tStoreGetStoreListByLocationParams) (retVal interface{}, errCode string, err error) {
locationList, err := common.GetStoreListByLocation(params.Ctx, params.Lng, params.Lat, 20000, params.NeedWalkDistance, false, params.BrandID)
if params.Token == "tempToken" {
return locationList, "", nil
}
//if params.Token == "tempToken" {
// return locationList, "", nil
//}
if params.Token != "" {
// 获取用户权限如果是普通用户不展示b2b相关目录如果是门店老板或者管理则展示全部
userAuth, err := auth2.GetTokenInfo(params.Token)