! 美团外卖与饿百门店只更新营业相关的状态

This commit is contained in:
gazebo
2019-03-29 12:13:36 +08:00
parent e17afbd4b9
commit 719579c110
3 changed files with 43 additions and 28 deletions

View File

@@ -122,7 +122,7 @@ func openTimeJX2Mtwm(times [][2]int16) string {
}
func bizStatusMtwm2JX(openLevel, online int) int {
if online == mtwmapi.PoiOffline {
if online == mtwmapi.PoiStatusOffline {
return model.StoreStatusDisabled
} else {
if openLevel == mtwmapi.PoiOpenLevelHaveRest {
@@ -134,11 +134,11 @@ func bizStatusMtwm2JX(openLevel, online int) int {
func bizStatusJX2Mtwm(status int) (openLevel, online int) {
if status == model.StoreStatusDisabled {
return mtwmapi.PoiOpenLevelHaveRest, mtwmapi.PoiOffline
return mtwmapi.PoiOpenLevelHaveRest, mtwmapi.PoiStatusOffline
} else if status == model.StoreStatusClosed {
return mtwmapi.PoiOpenLevelHaveRest, mtwmapi.PoiOnline
return mtwmapi.PoiOpenLevelHaveRest, mtwmapi.PoiStatusOnline
}
return mtwmapi.PoiOpenLevelNormal, mtwmapi.PoiOnline
return mtwmapi.PoiOpenLevelNormal, mtwmapi.PoiStatusOnline
}
func skuStatusJX2Mtwm(status int) int {