从银豹拉取标品修改

This commit is contained in:
苏尹岚
2020-03-31 16:37:08 +08:00
parent 41d957edcc
commit 37851244eb
2 changed files with 3 additions and 1 deletions

View File

@@ -65,6 +65,8 @@ func (p *PurchaseHandler) DeleteStoreSkus(ctx *jxcontext.Context, storeID int, v
}
func (p *PurchaseHandler) GetStoreSkusFullInfo(ctx *jxcontext.Context, parentTask tasksch.ITask, storeID int, vendorStoreID string, storeSkuList []*partner.StoreSkuInfo) (skuNameList []*partner.SkuNameInfo, err error) {
storeDetail, _ := dao.GetStoreDetail(dao.GetDB(), storeID, model.VendorIDYB)
api.YinBaoAPI = yinbaoapi.New(storeDetail.YbAppKey, storeDetail.YbAppID)
if storeSkuList != nil {
if len(storeSkuList) == 1 {
storeSku := storeSkuList[0]

View File

@@ -763,7 +763,7 @@ func (c *StoreSkuController) RefreshMatterStock() {
// @Title 从银豹上拉取标品到京西创建
// @Description 从银豹上拉取标品到京西创建
// @Param token header string false "认证token"
// @Param token header string true "认证token"
// @Param isAsync formData bool false "是否异步,缺省是同步"
// @Param isContinueWhenError formData bool false "单个同步失败是否继续缺省false"
// @Success 200 {object} controllers.CallResult