feat : auto dispense coupon

This commit is contained in:
2025-03-19 16:25:54 +08:00
parent f4d681a23a
commit 44170132e7
10 changed files with 331 additions and 59 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Constants\Common;
class WxMiniCode
{
/**
* 发送优惠券订阅消息模板id
*/
const string SEND_SUB_MESSAGE_GET_COUPON_TEMPLATE_ID = 'akV-wJt0AHWBpzPKvIsa0IRuzrf5yWPaMYvRRioI8XM';
const string SEND_SUB_MESSAGE_DELIVER_TEMPLATE_ID = 'xxxxxxxxxx';
/**
* @var int 发送消息类型 1=获取优惠券 2=送达
*/
CONST INT SEND_MSG_TYPE_GET_COUPON = 1;
CONST INT SEND_MSG_TYPE_DELIVER = 2;
const array TEMPLATE_ID_LIST = [
self::SEND_MSG_TYPE_GET_COUPON => self::SEND_SUB_MESSAGE_GET_COUPON_TEMPLATE_ID,
self::SEND_MSG_TYPE_DELIVER => self::SEND_SUB_MESSAGE_DELIVER_TEMPLATE_ID
];
}