This commit is contained in:
邹宗楠
2022-06-08 10:18:57 +08:00
parent 6f282b2d4d
commit 397d26eab0

View File

@@ -588,12 +588,6 @@ func (c *StoreController) GetStoreListByLocation() {
if err != nil {
return nil, "", err
}
if total != model.YES {
return nil, "", errors.New("未注册用户")
}
if user[0].Type != model.YES {
return locationList, "", nil
}
// 获取位置附近门店列表
storeIDs := make([]int, 0, len(locationList))
@@ -626,7 +620,14 @@ func (c *StoreController) GetStoreListByLocation() {
}
}
return result, "", err
if total != model.YES {
return result, "", errors.New("")//errors.New("未注册用户")
}
if user[0].Type != model.YES {
return locationList, "", nil
}else {
return result, "", err
}
})
}