feat : auto dispense coupon
This commit is contained in:
24
app/Constants/Common/WxMiniCode.php
Normal file
24
app/Constants/Common/WxMiniCode.php
Normal 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
|
||||
];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user