| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- namespace addons\Mch\common\enums;
- use common\enums\AddonsEnum;
- use common\enums\BaseEnum;
- use common\enums\ShippingTypeEnum;
- /**
- * Class AddonsCouponEnum
- * @package addons\Coupon\common\enums
- */
- class MchEnum extends BaseEnum
- {
- const ADDONS_NAME = AddonsEnum::ADDONS_NAME_MCH;
- const SUPPLIER_SELF = 0;//自身
- const SELF_MALL = 1;//商城
- const SELF_MCH = 2;//多商户
- const SELF_STORE = 3;//门店
- const REPEAL = -4;
- // 审核状态
- const CHECK_WAITING = 0; // 待审核
- const CHECK_ADOPT = 1; // 审核通过
- const CHECK_FAILED = 2; // 审核未通过
- public static function setpArrMap($order_status,$shipping_type_text)
- {
- switch ($order_status) {
- case self::REPEAL :
- $setpArr = [
- [
- 'title' => '买家下单',
- 'field' => 'created_at',
- ],
- [
- 'title' => '交易关闭',
- 'field' => 'close_time',
- ],
- ];
- break;
- default :
- $setpArr = [
- [
- 'title' => '买家下单',
- 'field' => 'created_at',
- ],
- [
- 'title' => '买家付款',
- 'field' => 'pay_time',
- ],
- [
- 'title' => $shipping_type_text,
- 'field' => 'consign_time',
- ],
- [
- 'title' => '交易完成',
- 'field' => 'finish_time',
- ],
- ];
- }
- return $setpArr;
- }
- public static function getMap(): array
- {
- return [];
- }
- }
|