70 lines
3.9 KiB
PHP
70 lines
3.9 KiB
PHP
<?php
|
||
|
||
namespace App\Constants;
|
||
|
||
class ConfigCode
|
||
{
|
||
/**
|
||
* @var string BasicConfiguration|基础配置
|
||
*/
|
||
const string TODAY_CUT_OFF_TIME_KEY = 'TodayCutOffTime'; // 当日下单截止时间
|
||
const string START_OF_THE_NEW_CYCLE = 'StartOfTheNewCycle'; // 新周期开始时间
|
||
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'; // 用户可以设置的送达地址的数量
|
||
const string MAXIMUM_VALUE_IN_FULL_BOX = 'MaximumValueInFullBox'; //运输箱最大可装自选盒数
|
||
const string MAXIMUM_WHOLE_CASE_SPLIT = 'MaximumWholeCaseSplit'; //运输箱分割列数最大值
|
||
const string ABOUT_US_SYNOPSIS = 'AboutUsSynopsis'; // 关于我们 - 简介
|
||
const string BUSINESS_LICENSE = 'BusinessLicense'; // 营业执照
|
||
const string USER_AGREEMENT = 'UserAgreement'; // 用户使用协议
|
||
const string USER_PRIVACY_AGREEMENT = 'UserPrivacyAgreement'; // 用户隐私协议
|
||
const string APP_LOGO = 'AppLogo'; // app 图标
|
||
const string ONE_CLICK_SHOPPING_FOR_CATEGORY_NAME = 'OneClickShoppingForCategoryName'; // 一键选购分类名称
|
||
const string ONE_CLICK_SHOPPING_FOR_CATEGORY_IMAGE = 'OneClickShoppingForCategoryImage'; // 一键选购分类图片
|
||
|
||
|
||
/**
|
||
* @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 天)
|
||
|
||
|
||
/**
|
||
* @var string PointsConfiguration|积分配置
|
||
*/
|
||
const string CONSUMPTION_RATIO = 'ConsumptionRatio'; // 消费金额转化的积分比例 1元 = x积分 (向下取整)
|
||
|
||
const array DEFAULT_VALUE = [
|
||
//BasicConfiguration
|
||
self::TODAY_CUT_OFF_TIME_KEY => '10:30:00',
|
||
self::START_OF_THE_NEW_CYCLE => '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,
|
||
self::MAXIMUM_VALUE_IN_FULL_BOX => 32,
|
||
self::MAXIMUM_WHOLE_CASE_SPLIT => 4,
|
||
self::ABOUT_US_SYNOPSIS => '关于我们-xxxx',
|
||
self::BUSINESS_LICENSE => 'https://www.baidu.com',
|
||
self::USER_AGREEMENT => 'https://www.baidu.com',
|
||
self::USER_PRIVACY_AGREEMENT => 'https://www.baidu.com',
|
||
self::APP_LOGO => 0,
|
||
self::ONE_CLICK_SHOPPING_FOR_CATEGORY_NAME => '一件选购',
|
||
self::ONE_CLICK_SHOPPING_FOR_CATEGORY_IMAGE => 0,
|
||
//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',
|
||
//PointsConfiguration
|
||
self::CONSUMPTION_RATIO => '0',
|
||
];
|
||
} |