Setting.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. * 获取订单类型值
  60. * @return array
  61. */
  62. public static function data()
  63. {
  64. return [
  65. self::DELIVERY => [
  66. 'value' => self::DELIVERY,
  67. 'describe' => '配送设置',
  68. ],
  69. self::TRADE => [
  70. 'value' => self::TRADE,
  71. 'describe' => '交易设置',
  72. ],
  73. self::SMS => [
  74. 'value' => self::SMS,
  75. 'describe' => '短信通知',
  76. ],
  77. self::STORAGE => [
  78. 'value' => self::STORAGE,
  79. 'describe' => '上传设置',
  80. ],
  81. self::FULL_FREE => [
  82. 'value' => self::FULL_FREE,
  83. 'describe' => '满额包邮设置',
  84. ],
  85. self::RECHARGE => [
  86. 'value' => self::RECHARGE,
  87. 'describe' => '充值设置',
  88. ],
  89. self::POINTS => [
  90. 'value' => self::POINTS,
  91. 'describe' => '积分设置',
  92. ],
  93. self::PAGE_CATEGORY_TEMPLATE => [
  94. 'value' => self::PAGE_CATEGORY_TEMPLATE,
  95. 'describe' => '分类页模板',
  96. ],
  97. self::WITHDRAWAL => [
  98. 'value' => self::WITHDRAWAL,
  99. 'describe' => '佣金提现设置',
  100. ],
  101. self::BRAND_CULTURE => [
  102. 'value' => self::BRAND_CULTURE,
  103. 'describe' => '品牌文化',
  104. ],
  105. self::ORDER_CANCEL => [
  106. 'value' => self::ORDER_CANCEL,
  107. 'describe' => '未支付订单',
  108. ],
  109. self::PROVIDER_SETTLEMENT => [
  110. 'value' => self::PROVIDER_SETTLEMENT,
  111. 'describe' => '供应商结算',
  112. ],
  113. self::REFUND => [
  114. 'value' => self::REFUND,
  115. 'describe' => '售后及佣金结算',
  116. ],
  117. self::COMMISSION => [
  118. 'value' => self::COMMISSION,
  119. 'describe' => '分销员分佣配置',
  120. ],
  121. self::DISTRIBUTOR => [
  122. 'value' => self::DISTRIBUTOR,
  123. 'describe' => '顾客购物折扣配置',
  124. ],
  125. self::SHOPS => [
  126. 'value' => self::SHOPS,
  127. 'describe' => '门店自提订单配置',
  128. ],
  129. self::DISTRIBUTOR_GRADE => [
  130. 'value' => self::DISTRIBUTOR_GRADE,
  131. 'describe' => '分销员推广佣金配置',
  132. ],
  133. self::DISTRIBUTOR_STEP => [
  134. 'value' => self::DISTRIBUTOR_STEP,
  135. 'describe' => '分销员推广阶梯达量奖励配置',
  136. ],
  137. self::MEMBER_GROWTH => [
  138. 'value' => self::MEMBER_GROWTH,
  139. 'describe' => 'VIP会员成长值配置',
  140. ],
  141. ];
  142. }
  143. }