- 添加空JD回调消息

This commit is contained in:
gazebo
2019-05-08 21:49:48 +08:00
parent f1e90240dc
commit eeb91c0724
5 changed files with 95 additions and 35 deletions

View File

@@ -216,6 +216,13 @@ const (
OrderStatusEndBegin = 100 // 以下的状态就是结束状态
OrderStatusFinished = 110 // 订单已完成
OrderStatusCanceled = 115 // 订单已取消
AfsOrderStatusWait4Approve = 150 // 待审核售后单
AfsOrderStatusNew = 155 // 已审核售后单,或不需要审核的新售后单
AfsOrderStatusWait4ReceiveGoods = 160 // 退款退货的,需要商家确认收到货
AfsOrderStatusReceivedGoods = 162 // 已确认收到货
AfsOrderStatusFinished = 180 // 售后单成功完成
AfsOrderStatusFailed = 190 // 售后单失败
)
const (
@@ -290,6 +297,26 @@ const (
OrderFlagMaskCallPMCourier = 64 // 取货失败后召唤平台配送
)
const (
AfsAppealTypeRefund = 1 // 仅退款
AfsAppealTypeReturnAndRefund = 2 // 退货退款
AfsAppealTypeNewGoods = 3 // 重发新商品(即京东到家的直赔)
)
const (
AfsReasonTypeGoodsQuality = 1 // 商品质量
AfsReasonTypeWrongGoods = 2 // 错误的商品
AfsReasonTypeMissingGoods = 3 // 缺少部分商品
AfsReasonTypeNoGoods = 4 // 全部商品未收到
AfsReasonTypeDamagedGoods = 5 // 商品有损伤
AfsReasonTypeGoodsQuantity = 6 // 缺斤少两
AfsReasonTypeAgreedByMerchant = 7 // 与商家协商一致
AfsReasonTypeGoodsNoSame = 8 // 商品与描述不符
AfsReasonWrongPurchase = 9 // 误购
AfsReasonNotReceivedIntime = 10 // 未在时效内送达
AfsReasonNotOthers = 20 // 其它
)
func IsPurchaseVendorExist(vendorID int) bool {
_, ok := VendorNames[vendorID]
return ok && vendorID >= VendorIDPurchaseBegin && vendorID <= VendorIDPurchaseEnd