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