This commit is contained in:
suyl
2021-04-28 17:27:43 +08:00
parent 199ac9e495
commit 64a251da34

View File

@@ -470,12 +470,10 @@ func GetMyStoreListNew(ctx *jxcontext.Context, mobile string) (storesInfo interf
if !auth2.IsV2Token(ctx.GetToken()) {
return nil, model.ErrCodeTokenIsInvalid, model.ErrTokenIsInvalid
}
_, userID := ctx.GetMobileAndUserID()
//if mobileNum == "" {
//userID := ctx.GetUserID()
//dao.GetUserByID()
//return nil, "", fmt.Errorf("不能得到用户手机号")
//}
userID := ctx.GetUserID()
if mobile == "" {
return nil, "", fmt.Errorf("不能得到用户手机号")
}
var storeList []*dao.StoreWithCityName
if storeList, err = GetStoreList4User(ctx, mobile, userID); err == nil && len(storeList) > 0 {
// todo应该用通用方法