1
This commit is contained in:
@@ -497,11 +497,12 @@ func GetStoreList4User(ctx *jxcontext.Context, mobileNum, userID string) (storeL
|
|||||||
storeIDs = append(storeIDs, v.StoreID)
|
storeIDs = append(storeIDs, v.StoreID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("====roleList := %s", utils.Format4Output(roleList, false))
|
|
||||||
globals.SugarLogger.Debugf("====storeIDs := %s", utils.Format4Output(storeIDs, false))
|
if len(storeIDs) == model.NO && len(shortRoleNameList) == model.NO {
|
||||||
globals.SugarLogger.Debugf("====shortRoleNameList := %s", utils.Format4Output(shortRoleNameList, false))
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
storeList, err = dao.GetStoreListByMobileOrStoreIDs(dao.GetDB(), mobileNum, shortRoleNameList, storeIDs)
|
storeList, err = dao.GetStoreListByMobileOrStoreIDs(dao.GetDB(), mobileNum, shortRoleNameList, storeIDs)
|
||||||
globals.SugarLogger.Debugf("====storeList := %s", utils.Format4Output(shortRoleNameList, false))
|
|
||||||
|
|
||||||
return storeList, err
|
return storeList, err
|
||||||
}
|
}
|
||||||
@@ -518,8 +519,8 @@ func GetMyStoreListNew(ctx *jxcontext.Context, version string) (storesInfo inter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
mobile, userID := ctx.GetMobileAndUserID()
|
mobile, userID := ctx.GetMobileAndUserID()
|
||||||
if mobile == "" {
|
if mobile == "" || userID == "" || userID == "null" || userID == "NULL" {
|
||||||
return nil, "", fmt.Errorf("不能得到用户手机号")
|
return nil, "", fmt.Errorf("不能得到用户手机号,%s,%s", userID, mobile)
|
||||||
}
|
}
|
||||||
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user