【代码优化】SYSTEM:微信小程序的订阅

This commit is contained in:
YunaiV
2024-07-31 19:48:13 +08:00
parent 77306a54e7
commit ececc6f67c
5 changed files with 14 additions and 13 deletions
+7 -6
View File
@@ -56,14 +56,15 @@ export const TimeStatusEnum = {
END: '已结束',
}
// TODO 订阅模版枚举
export const SubscribeTemplate = {
WALLET_RECHARGER_PAID: "充值成功通知",
DELIVERY_ORDER: "订单发货通知",
COMBINATION_RESULT: "拼团结果通知"
/**
* 微信小程序的订阅模版
*/
export const WxaSubscribeTemplate = {
TRADE_ORDER_DELIVERY: "订单发货通知",
PROMOTION_COMBINATION_SUCCESS: "拼团结果通知",
PAY_WALLET_RECHARGER_SUCCESS: "充值成功通知",
}
export const getTimeStatusEnum = (startTime, endTime) => {
const now = dayjs();
if (now.isBefore(startTime)) {