1
This commit is contained in:
@@ -65,6 +65,15 @@ func GetMerchantInfo(merchantNo string) (*lakala.MerchantObj, error) {
|
||||
return result, err
|
||||
}
|
||||
|
||||
// GetPosTerimeInfo 获取门店商户详情
|
||||
func GetPosTerimeInfo(posSn string) (*lakala.TerminalInfo, error) {
|
||||
result, err := api.LaKaLaApi.GetTerminalInfo(posSn)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, err
|
||||
}
|
||||
|
||||
// QueryCityCode 获取拉卡拉code列表
|
||||
func QueryCityCode(parentCode string) ([]*lakala.OrganizationList, error) {
|
||||
return api.LaKaLaApi.GetOrganizationCode(parentCode)
|
||||
|
||||
@@ -231,7 +231,7 @@ func (p *PurchaseHandler) updateStoreSkus(ctx *jxcontext.Context, storeID int, v
|
||||
if strings.Contains(storeSku.StoreName, model.ExdStoreName) {
|
||||
isExd = true
|
||||
}
|
||||
params := genSkuParamsFromStoreSkuInfo2(storeSku, false, isExd)
|
||||
params := genSkuParamsFromStoreSkuInfo2(storeSku, false, true)
|
||||
if globals.EnableEbaiStoreWrite {
|
||||
_, err = api.EbaiAPI.SkuUpdate(ctx.GetTrackInfo(), strStoreID, utils.Str2Int64(storeSku.VendorSkuID), params)
|
||||
if err != nil {
|
||||
@@ -283,7 +283,7 @@ func (p *PurchaseHandler) CreateStoreSkus(ctx *jxcontext.Context, storeID int, v
|
||||
isExd = false
|
||||
customSkuID = int64(storeSku.SkuID)
|
||||
}
|
||||
params := genSkuParamsFromStoreSkuInfo2(storeSku, true, isExd)
|
||||
params := genSkuParamsFromStoreSkuInfo2(storeSku, true, true)
|
||||
if globals.EnableEbaiStoreWrite {
|
||||
strStoreID := utils.Int2Str(storeID)
|
||||
if vendorSkuID, err = api.EbaiAPI.SkuCreate(ctx.GetTrackInfo(), strStoreID, customSkuID, params); err == nil && !isExd {
|
||||
|
||||
Reference in New Issue
Block a user