! 美团外卖与饿百门店只更新营业相关的状态
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user