You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
honor-dd-light-ds-java/doc/move/const/class.DoudianMsgConst.php

201 lines
7.9 KiB
PHTML

<?php
class DoudianMsgConst {
const tagTradeCreate = 100;//订单创建消息
const tagTradePaid = 101;//订单支付/确认消息
const tagTradeSellerShip = 102;//卖家发货消息
const tagTradeSuccess = 103;//交易完成消息
const tagTradeLogisticsChanged = 104;//发货物流变更消息
const tagTradeAddressChanged = 105;//买家收货信息变更消息
const tagTradeCanceled = 106;//订单取消消息
const tagTradePartlySellerShip = 108;//订单部分发货消息
const tagTradeAmountChanged = 109;//订单金额修改消息
const tagTradePending = 110;//订单已支付待处理
const tagTradeAddressChangeApplied = 111;//买家收货信息变更申请消息
const tagTradeAppointment = 112;//预约发货提交消息
const tagTradeMemoModify = 113;//订单商家备注消息推送
const tagTradeLogisticsOrderTagPush = 10003;//订单标记推送
public static function getAllTradeTags() {
return [
self::tagTradeCreate,
self::tagTradePaid,
self::tagTradeSellerShip,
self::tagTradeSuccess,
self::tagTradeLogisticsChanged,
self::tagTradeAddressChanged,
self::tagTradeCanceled,
self::tagTradePartlySellerShip,
self::tagTradeAmountChanged,
self::tagTradePending,
self::tagTradeAddressChangeApplied,
self::tagTradeAppointment,
self::tagTradeMemoModify,
self::tagTradeLogisticsOrderTagPush,
];
}
public static function getTradeBdTagsAndPriorityMap() {
return [
self::tagTradeSellerShip => 90,
self::tagTradeSuccess => 99,
self::tagTradeLogisticsChanged => 95,
self::tagTradeAddressChanged => 90,
self::tagTradeCanceled => 90,
self::tagTradePartlySellerShip => 90,
self::tagTradeAmountChanged => 90,
self::tagTradePending => 95,
self::tagTradeAddressChangeApplied => 90,
self::tagTradeAppointment => 95,
self::tagTradeMemoModify => 90,
self::tagTradeLogisticsOrderTagPush => 90,
];
}
const tagRefundArbitrateApplied = 212;//买家发起客服仲裁消息
const tagRefundArbitrateAudited = 216;//客服仲裁结果消息
const tagRefundArbitrateCancelled = 215;//买家取消仲裁消息
const tagRefundArbitrateSubmited = 214;//商家上传仲裁凭证消息
const tagRefundArbitrateSubmiting = 213;//客服要求商家上传凭证消息
const tagRefundBuyerReturnGoods = 203;//买家退货给卖家消息
const tagRefundExchangeComfirmed = 211;//确认收货并二次发货成功
const tagRefundExpirationChange = 209;//售后超时时长变更消息
const tagRefundRefundAgreed = 201;//同意退款消息
const tagRefundRefundClosed = 207;//售后关闭消息
const tagRefundRefundCreated = 200;//买家发起售后申请消息
const tagRefundRefundModified = 208;//买家修改售后申请消息
const tagRefundRefundRefused = 204;//拒绝退款消息
const tagRefundRefundSuccess = 206;//退款成功消息
const tagRefundReturnApplyAgreed = 202;//同意退货申请消息
const tagRefundReturnApplyRefused = 205;//拒绝退货申请消息
const tagRefundReturnSpecialRefund = 224;//特殊权益售后消息
const tagRefundReturnSpecialRefundSuccess = 225;//特殊权益售后退款成功消息
const tagRefundResendConfirmed = 226;//补寄单商家补寄消息
const tagRefundResendAgree = 227;//商家同意补寄消息
public static function getAllAftersaleTags() {
return [
self::tagRefundArbitrateApplied,
self::tagRefundArbitrateAudited,
self::tagRefundArbitrateCancelled,
self::tagRefundArbitrateSubmited,
self::tagRefundArbitrateSubmiting,
self::tagRefundBuyerReturnGoods,
self::tagRefundExchangeComfirmed,
self::tagRefundExpirationChange,
self::tagRefundRefundAgreed,
self::tagRefundRefundClosed,
self::tagRefundRefundCreated,
self::tagRefundRefundModified,
self::tagRefundRefundRefused,
self::tagRefundRefundSuccess,
self::tagRefundReturnApplyAgreed,
self::tagRefundReturnApplyRefused,
self::tagRefundReturnSpecialRefund,
self::tagRefundReturnSpecialRefundSuccess,
self::tagRefundResendConfirmed,
self::tagRefundResendAgree,
];
}
const spiCodeSuccess = 0;//业务处理成功
const spiCodeCheckSignFail = 100001;//验签失败
const spiCodeParamError = 100002;// 参数错误
const spiCodeSystemError = 100003;//系统错误
const spiCodeChangeFail = 200023;//系统异常,地址修改失败建议联系商家修改
const spiCodeOrderAlreadyDelivery = 200015;//订单已经发货无法修改地址
const spiCodeOrderFinish = 200021;//订单已经签收无法修改地址
const spiCodeOrderNotExist = 200022;//订单不存在,请稍后重试
const spiCodeOrderInAfterSale = 200002;//订单进入审单不支持改地址
public static function getSpiCodeMap() {
return [
self::spiCodeSuccess => '业务处理成功',
self::spiCodeCheckSignFail => '验签失败',
self::spiCodeParamError => '参数错误',
self::spiCodeSystemError => '系统错误',
self::spiCodeOrderAlreadyDelivery => '订单已经发货无法修改地址',
self::spiCodeOrderFinish => '订单已经签收无法修改地址',
self::spiCodeOrderNotExist => '订单不存在,请稍后重试',
self::spiCodeOrderInAfterSale => '订单进入审单不支持改地址',
self::spiCodeChangeFail => '系统异常,地址修改失败建议联系商家修改',
];
}
public static function getSpiSkuChangeCodeAndTextMap() {
return [
self::spiCodeSuccess => '业务处理成功',
self::spiCodeCheckSignFail => '验签失败',
self::spiCodeParamError => '参数错误',
self::spiCodeSystemError => '系统错误',
self::spiCodeOrderAlreadyDelivery => '订单已经发货不支持修改sku',
self::spiCodeOrderFinish => '订单已经签收不支持修改sku',
self::spiCodeOrderNotExist => '订单不存在,请稍后重试',
self::spiCodeOrderInAfterSale => '订单进入审单不支持改sku',
];
}
public static function getSpiCodeByOrderStatus($orderStatus) {
if (empty($orderStatus)) {
return self::spiCodeParamError;
}
$orderStatusAndSpiCodeMap = [
OrderConst::orderStatusWaitBuyerConfirmGoods => self::spiCodeOrderAlreadyDelivery,//发货
OrderConst::orderStatusPartDelivery => self::spiCodeOrderAlreadyDelivery,//部分发货
OrderConst::orderStatusFinish => self::spiCodeOrderFinish,//订单结束
];
return $orderStatusAndSpiCodeMap[$orderStatus] ?: self::spiCodeChangeFail;
}
/**
* 代打代发:商家修改备注消息
*/
const tagIopTradeUpdateRemark = 500;
/**
* 代打代发:商家订单分配消息
*/
const tagIopTradeDistribution = 501;
/**
* 代打代发:商家取消分配订单消息
*/
const tagIopTradeDistributionCancel = 503;
/**
* 代打代发:修改收件人信息消息
*/
const tagIopTradeUpdateReceiver = 504;
/**
* 代打代发:代打运单回传状态变更消息
*/
const tagIopTradeStatusReturn = 505;
public static function getAllIopTradeTags() {
return [
self::tagIopTradeUpdateRemark,
self::tagIopTradeDistribution,
self::tagIopTradeDistributionCancel,
self::tagIopTradeUpdateReceiver,
self::tagIopTradeStatusReturn,
];
}
}