diff --git a/business/jxstore/cms/user2.go b/business/jxstore/cms/user2.go index e4c1db2da..514abef31 100644 --- a/business/jxstore/cms/user2.go +++ b/business/jxstore/cms/user2.go @@ -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,应该用通用方法