1
This commit is contained in:
@@ -462,13 +462,13 @@ func (c *PurchaseHandler) UpdateStoreBoxFee(ctx *jxcontext.Context, vendorOrgCod
|
|||||||
func (c *PurchaseHandler) UpdateStoreLineStatus(ctx *jxcontext.Context, vendorOrgCode string, storeID int, vendorStoreID string, lineStatus int) (err error) {
|
func (c *PurchaseHandler) UpdateStoreLineStatus(ctx *jxcontext.Context, vendorOrgCode string, storeID int, vendorStoreID string, lineStatus int) (err error) {
|
||||||
mtwmApi := getAPI(vendorOrgCode, storeID, vendorStoreID)
|
mtwmApi := getAPI(vendorOrgCode, storeID, vendorStoreID)
|
||||||
switch lineStatus {
|
switch lineStatus {
|
||||||
case model.StoreStatusOpened:
|
case model.StoreStatusOpened: // 先上线在开店
|
||||||
if err = mtwmApi.PoiOnline(vendorStoreID); err == nil {
|
if err = mtwmApi.PoiOnline(vendorStoreID); err == nil {
|
||||||
err = mtwmApi.PoiOpen(vendorStoreID)
|
err = mtwmApi.PoiOpen(vendorStoreID)
|
||||||
}
|
}
|
||||||
default:
|
default: // 先关店,在下线
|
||||||
if err = mtwmApi.PoiOffline(vendorStoreID); err == nil {
|
if err = mtwmApi.PoiClose(vendorStoreID); err == nil {
|
||||||
err = mtwmApi.PoiClose(vendorStoreID)
|
err = mtwmApi.PoiOffline(vendorStoreID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user