Setting.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 萤火商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2017~2021 https://www.yiovo.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed 这不是一个自由软件,不允许对程序代码以任何形式任何目的的再发行
  8. // +----------------------------------------------------------------------
  9. // | Author: 萤火科技 <admin@yiovo.com>
  10. // +----------------------------------------------------------------------
  11. declare (strict_types = 1);
  12. namespace app\common\enum;
  13. /**
  14. * 商城设置枚举类
  15. * Class Setting
  16. * @package app\common\enum
  17. */
  18. class Setting extends EnumBasics
  19. {
  20. // 配送设置
  21. const DELIVERY = 'delivery';
  22. // 交易设置
  23. const TRADE = 'trade';
  24. // 短信通知
  25. const SMS = 'sms';
  26. // 上传设置
  27. const STORAGE = 'storage';
  28. // 满额包邮设置
  29. const FULL_FREE = 'full_free';
  30. // 充值设置
  31. const RECHARGE = 'recharge';
  32. // 积分设置
  33. const POINTS = 'points';
  34. // 分类页模板
  35. const PAGE_CATEGORY_TEMPLATE = 'page_category_template';
  36. // 佣金提现设置
  37. const WITHDRAWAL = 'withdrawal';
  38. // 品牌文化设置
  39. const BRAND_CULTURE = 'brand_culture';
  40. // 未支付订单自动关闭设置
  41. const ORDER_CANCEL = 'order_cancel';
  42. // 供应商结算设置
  43. const PROVIDER_SETTLEMENT = 'provider_settlement';
  44. // 关闭售后入口+自动确认收货+佣金结算周期
  45. const REFUND = 'refund';
  46. // 分销员推广佣金配置
  47. const COMMISSION = 'commission'; //废弃于2021年12月7日
  48. // 分销员推广佣金配置
  49. const DISTRIBUTOR_GRADE = 'distributor_grade';
  50. // 分销员推广佣金阶梯达量奖励配置
  51. const DISTRIBUTOR_STEP = 'distributor_step';
  52. //顾客购物折扣配置
  53. const DISTRIBUTOR = 'distributor';
  54. //门店自提订单配置
  55. const SHOPS = 'shops';
  56. //会员成长值配置
  57. const MEMBER_GROWTH = 'member_growth';
  58. //腊肠积分设置
  59. const POINTS_RATE = 'points_rate';
  60. /**
  61. * 获取订单类型值
  62. * @return array
  63. */
  64. public static function data()
  65. {
  66. return [
  67. self::DELIVERY => [
  68. 'value' => self::DELIVERY,
  69. 'describe' => '配送设置',
  70. ],
  71. self::TRADE => [
  72. 'value' => self::TRADE,
  73. 'describe' => '交易设置',
  74. ],
  75. self::SMS => [
  76. 'value' => self::SMS,
  77. 'describe' => '短信通知',
  78. ],
  79. self::STORAGE => [
  80. 'value' => self::STORAGE,
  81. 'describe' => '上传设置',
  82. ],
  83. self::FULL_FREE => [
  84. 'value' => self::FULL_FREE,
  85. 'describe' => '满额包邮设置',
  86. ],
  87. self::RECHARGE => [
  88. 'value' => self::RECHARGE,
  89. 'describe' => '充值设置',
  90. ],
  91. self::POINTS => [
  92. 'value' => self::POINTS,
  93. 'describe' => '积分设置',
  94. ],
  95. self::PAGE_CATEGORY_TEMPLATE => [
  96. 'value' => self::PAGE_CATEGORY_TEMPLATE,
  97. 'describe' => '分类页模板',
  98. ],
  99. self::WITHDRAWAL => [
  100. 'value' => self::WITHDRAWAL,
  101. 'describe' => '佣金提现设置',
  102. ],
  103. self::BRAND_CULTURE => [
  104. 'value' => self::BRAND_CULTURE,
  105. 'describe' => '品牌文化',
  106. ],
  107. self::ORDER_CANCEL => [
  108. 'value' => self::ORDER_CANCEL,
  109. 'describe' => '未支付订单',
  110. ],
  111. self::PROVIDER_SETTLEMENT => [
  112. 'value' => self::PROVIDER_SETTLEMENT,
  113. 'describe' => '供应商结算',
  114. ],
  115. self::REFUND => [
  116. 'value' => self::REFUND,
  117. 'describe' => '售后及佣金结算',
  118. ],
  119. self::COMMISSION => [
  120. 'value' => self::COMMISSION,
  121. 'describe' => '分销员分佣配置',
  122. ],
  123. self::DISTRIBUTOR => [
  124. 'value' => self::DISTRIBUTOR,
  125. 'describe' => '顾客购物折扣配置',
  126. ],
  127. self::SHOPS => [
  128. 'value' => self::SHOPS,
  129. 'describe' => '门店自提订单配置',
  130. ],
  131. self::DISTRIBUTOR_GRADE => [
  132. 'value' => self::DISTRIBUTOR_GRADE,
  133. 'describe' => '分销员推广佣金配置',
  134. ],
  135. self::DISTRIBUTOR_STEP => [
  136. 'value' => self::DISTRIBUTOR_STEP,
  137. 'describe' => '分销员推广阶梯达量奖励配置',
  138. ],
  139. self::MEMBER_GROWTH => [
  140. 'value' => self::MEMBER_GROWTH,
  141. 'describe' => 'VIP会员成长值配置',
  142. ],
  143. self::POINTS_RATE => [
  144. 'value' => self::MEMBER_GROWTH,
  145. 'describe' => '荣旺积分配置',
  146. ],
  147. ];
  148. }
  149. }