tempToken
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user