+ GetAllStoresVendorID

This commit is contained in:
gazebo
2019-07-22 15:38:01 +08:00
parent a4470e5fb5
commit 8406359a7c
6 changed files with 31 additions and 17 deletions

View File

@@ -465,3 +465,14 @@ func (c *PurchaseHandler) UpdateStoreOpTime(ctx *jxcontext.Context, storeID int,
}
return err
}
func (c *PurchaseHandler) GetAllStoresVendorID(ctx *jxcontext.Context) (vendorStoreIDs []string, err error) {
shopList, err := api.EbaiAPI.ShopList(ebaiapi.SysStatusAll)
if err == nil && len(shopList) > 0 {
vendorStoreIDs = make([]string, len(shopList))
for k, v := range shopList {
vendorStoreIDs[k] = utils.Int64ToStr(v.BaiduShopID)
}
}
return vendorStoreIDs, err
}