- dont't use JdRange2JxRange.

This commit is contained in:
gazebo
2018-09-21 09:56:05 +08:00
parent 49a2d30f0e
commit d10869cef4
5 changed files with 16 additions and 6 deletions

View File

@@ -131,6 +131,16 @@ func (p *PurchaseHandler) UpdateStore(storeID int, userName string) (err error)
// todo remove out shop id
}
}
if err == nil {
mergeStatus := jxutils.MergeStoreStatus(store.Status, store.EbaiStoreStatus)
if mergeStatus == model.StoreStatusOpened {
err = api.EbaiAPI.ShopOnline("", utils.Str2Int64(store.VendorStoreID))
} else if mergeStatus == model.StoreStatusClosed {
err = api.EbaiAPI.ShopOffline("", utils.Str2Int64(store.VendorStoreID))
} else if mergeStatus == model.StoreStatusClosed {
err = api.EbaiAPI.ShopClose("", utils.Str2Int64(store.VendorStoreID))
}
}
}
}
}