1
This commit is contained in:
@@ -361,6 +361,7 @@ func (p *PurchaseHandler) EnableAutoAcceptOrder(ctx *jxcontext.Context, vendorOr
|
|||||||
|
|
||||||
func (c *PurchaseHandler) UpdateStoreStatus(ctx *jxcontext.Context, vendorOrgCode string, storeID int, vendorStoreID string, status int) (err error) {
|
func (c *PurchaseHandler) UpdateStoreStatus(ctx *jxcontext.Context, vendorOrgCode string, storeID int, vendorStoreID string, status int) (err error) {
|
||||||
openLevel, isOnline := bizStatusJX2Mtwm(status)
|
openLevel, isOnline := bizStatusJX2Mtwm(status)
|
||||||
|
globals.SugarLogger.Debugf("===================openLevel:%d,isOnline : %d", openLevel, isOnline)
|
||||||
if globals.EnableMtwmStoreWrite {
|
if globals.EnableMtwmStoreWrite {
|
||||||
if isOnline != mtwmapi.PoiStatusOnline {
|
if isOnline != mtwmapi.PoiStatusOnline {
|
||||||
err = getAPI(vendorOrgCode, storeID, vendorStoreID).PoiOffline(vendorStoreID)
|
err = getAPI(vendorOrgCode, storeID, vendorStoreID).PoiOffline(vendorStoreID)
|
||||||
@@ -370,6 +371,7 @@ func (c *PurchaseHandler) UpdateStoreStatus(ctx *jxcontext.Context, vendorOrgCod
|
|||||||
if err = err2; err != nil {
|
if err = err2; err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("=========remoteStoreInfo := %s", utils.Format4Output(remoteStoreInfo, false))
|
||||||
if remoteStoreInfo.IsOnline == mtwmapi.PoiStatusOnline {
|
if remoteStoreInfo.IsOnline == mtwmapi.PoiStatusOnline {
|
||||||
if openLevel == mtwmapi.PoiOpenLevelHaveRest {
|
if openLevel == mtwmapi.PoiOpenLevelHaveRest {
|
||||||
// 门店下线时通知给石锋
|
// 门店下线时通知给石锋
|
||||||
|
|||||||
Reference in New Issue
Block a user