| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace addons\Community\common\enums;
- use common\enums\AddonsEnum;
- use common\enums\BaseEnum;
- /**
- * Class CommunityEnum
- * @package addons\Community\common\enums
- */
- class CommunityEnum extends BaseEnum
- {
- const ADDONS_NAME = AddonsEnum::ADDONS_NAME_COMMUNITY;
- const REGION_TREE = self::ADDONS_NAME . '_region_tree';
- const COMMUNITY_PICKUP_PRIZE = 'community_pickup_prize';
- // 审核状态
- const CHECK_WAITING = 0; // 待审核
- const CHECK_ADOPT = 1; // 审核通过
- const CHECK_FAILED = 2; // 审核未通过
- public static function getMap(): array
- {
- return [];
- }
- public static function getCheckStatusMap($key = null)
- {
- $data = [
- self::CHECK_WAITING => '待审核',
- self::CHECK_ADOPT => '已同意',
- self::CHECK_FAILED => '已驳回',
- ];
- return isset($data[$key]) ? $data[$key] : $data;
- }
- const SMS_KEYS = [
- 'order.id' => '订单ID',
- 'order.created_at' => '订单创建时间',
- 'order.order_no' => '订单编号',
- 'order.mobile' => '收件人手机号码',
- 'order.pay_money' => '订单支付金额',
- 'order.goods_price' => '订单商品金额',
- 'order.original_goods_price'=> '订单商品原始金额',
- 'order.score' => '消耗积分',
- 'user.nickname' => '买家昵称',
- 'user.id' => '买家ID',
- 'user.username' => '买家用户名',
- 'user.mobile' => '买家手机号码',
- 'head.contacts' => '自提点联系人姓名',
- 'head.mobile' => '自提点联系电话',
- 'head.name' => '自提点名称',
- ];
- }
|