- 获取平台门店信息后,更新本地DeliveryType

This commit is contained in:
gazebo
2019-07-29 17:18:06 +08:00
parent bda7a4edb2
commit 1a8bcef392
4 changed files with 17 additions and 12 deletions

View File

@@ -277,9 +277,9 @@ func (p *PurchaseHandler) RefreshAllStoresID(ctx *jxcontext.Context, parentTask
// }
func JdDeliveryType2Jx(deliveryType int) int8 {
if deliveryType == 2938 {
if deliveryType == jdapi.CarrierNoSelfDelivery {
return scheduler.StoreDeliveryTypeByStore
} else if deliveryType == 9966 {
} else if deliveryType == jdapi.CarrierNoCrowdSourcing {
return scheduler.StoreDeliveryTypeCrowdSourcing
}
return scheduler.StoreDeliveryTypeByPlatform