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.
pdd-order-api/app/libs/const/class.PmcConst.php

63 lines
2.3 KiB
PHP

<?php
class PmcConst {
const pmcTradeSuccess = 'pdd_trade_TradeSuccess';//交易成功
const pmcTradeConfirmed = 'pdd_trade_TradeConfirmed';//交易确认
const pmcTradeSellerShip = 'pdd_trade_TradeSellerShip';//卖家发货
const pmcTradeLogisticsAddressChanged = 'pdd_trade_TradeLogisticsAddressChanged';//修改交易收货地址
const pmcTradeMemoModified = 'pdd_trade_TradeMemoModified';//交易备注修改
const pmcOrderPromise = 'pdd_chat_OrderPromise';//订单服务承诺消息
const pmcRefundClosed = 'pdd_refund_RefundClosed';//售后单关闭
const pmcRefundBuyerModifyAgreement = 'pdd_refund_RefundBuyerModifyAgreement';//买家修改退款协议
const pmcRefundBuyerReturnGoods = 'pdd_refund_RefundBuyerReturnGoods';//买家退货给卖家
const pmcRefundCreateMessage = 'pdd_refund_RefundCreateMessage';//发表退款留言
const pmcRefundCreated = 'pdd_refund_RefundCreated';//创建退款
const pmcRefundAgreeAgreement = 'pdd_refund_RefundAgreeAgreement';//同意退款协议
const pmcTraceIsvNotify = 'trace_isv_notify';
const pmcTraceIsvNotifyByMall = 'trace_isv_NotifyByMall';
public static function getOpOrderMessageTypeList() {
$topics = [];
if (AppConst::isOdAppCategory() || AppConst::isPddDzJxcApp() || AppConst::isOpAppCategory()) {
$topics = [
self::pmcTradeSuccess,
self::pmcTradeConfirmed,
self::pmcTradeSellerShip,
self::pmcTradeLogisticsAddressChanged,
self::pmcRefundCreated,
self::pmcRefundClosed,
//self::pmcRefundBuyerModifyAgreement,
self::pmcRefundBuyerReturnGoods,
self::pmcRefundAgreeAgreement,
];
}
if (AppConst::isPddMsOpApp() || AppConst::isPddDzOpApp() || AppConst::isPddOpRubyApp() || AppConst::isPddDzApp()) {
$topics[] = self::pmcOrderPromise;
}
return $topics;
}
public static function getLogisticsTraceMessageTypeList() {
if (AppConst::isPddDzJxcApp() || AppConst::isPddDzOpApp()) {
return [
self::pmcTraceIsvNotifyByMall,
];
}
return [];
}
public static function getPmcSubMessageList() {
return array_merge(self::getOpOrderMessageTypeList(), self::getLogisticsTraceMessageTypeList());
}
}