aa
This commit is contained in:
@@ -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,应该用通用方法
|
||||
|
||||
Reference in New Issue
Block a user