Files
hyperf_service/app/Constants/ConfigCode.php
2025-03-06 16:25:25 +08:00

41 lines
2.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Constants;
class ConfigCode
{
/**
* @var string BasicConfiguration|基础配置
*/
const string TODAY_CUT_OFF_TIME_KEY = 'TodayCutOffTime'; // 当日下单截止时间
const string ORDER_CANCEL_TIME_KEY = 'OrderCancelTime'; // 订单取消时间(下单后自动取消)
const string SUNDRY_UNIT_PRICE = 'SundryUnitPrice'; // 附加费单价 (服务费)
const string SUNDRY_PRICE_COMPUTE_TYPE = 'SundryPriceComputeType'; // 附加费计算方式 1 仅自选计算(默认值) 2 仅套餐计算 3 套餐自选都计算
const string NUMBER_OF_USER_ADDRESS_POOLS = 'NumberOfUserAddressPools'; // 用户可以设置的送达地址的数量
/**
* @var string CouponConfiguration|优惠券配置
*/
const string COUPONS_FOR_NEWCOMERS = 'CouponsForNewcomers'; // 新人赠送的优惠券(送多少张直接用模板 id 加英文字符隔开 0代表不赠送
const string NEWBIE_COUPON_VALIDITY = 'NewbieCouponValidity'; // 新人优惠券有效期ps:从领取时间开始的第 x 天 0表示不赠送
const string INVITING_PARTY_COUPON = 'InvitingPartyCoupon'; // 邀请方优惠券 邀请一个人所送的优惠券
const string INVITING_PARTY_COUPON_VALIDITY = 'InvitingPartyCouponValidity'; // 邀请方优惠券有效期ps:从领取时间开始的第 x 天)
const string INVITED_PARTY_COUPON = 'InvitedPartyCoupon'; // 被邀请方优惠券 被邀请一个人所送的优惠券
const string INVITEE_COUPON_VALIDITY = 'InviteeCouponValidity'; // 被邀请方优惠券有效期ps:从领取时间开始的第 x 天)
const array DEFAULT_VALUE = [
//BasicConfiguration
self::TODAY_CUT_OFF_TIME_KEY => '15:00:00',
self::ORDER_CANCEL_TIME_KEY => 5,
self::SUNDRY_UNIT_PRICE => '3',
self::SUNDRY_PRICE_COMPUTE_TYPE => 1,
self::NUMBER_OF_USER_ADDRESS_POOLS => 10,
//CouponConfiguration
self::COUPONS_FOR_NEWCOMERS => '0',
self::NEWBIE_COUPON_VALIDITY => '0',
self::INVITING_PARTY_COUPON => '0',
self::INVITING_PARTY_COUPON_VALIDITY => '0',
self::INVITED_PARTY_COUPON => '0',
self::INVITEE_COUPON_VALIDITY => '0',
];
}