| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace common\enums;
- /**
- *
- * Class ExpressEnum
- * @package common\enums
- * @author qimall
- */
- class ExpressEnum
- {
- const EXPRESS_ALREADY_TOOK = 0;
- const EXPRESS_ALREADY_SEND = 1;
- const EXPRESS_ON_THE_WAY = 2;
- const EXPRESS_ALREADY_SIGN = 3;
- const EXPRESS_PROBLEM = 4;
- const EXPRESS_ABNORMAL = 5;
- const EXPRESS_NO_INFO = 9;
- const EXPRESS_PAY = 2;
- const EXPRESS_NO_PAY = 1;
- const TABLE_EXPRESS_SUCCESS = 1;//qimall_order_express_log 表table_express_status 物流状态0/未完成 1/已完成
- const TABLE_EXPRESS_WAIT = 0;
- public static function getStatusMap($status = null)
- {
- $data = [
- self::EXPRESS_ALREADY_TOOK => '已揽件',
- self::EXPRESS_ALREADY_SEND => '已发出',
- self::EXPRESS_ON_THE_WAY => '在途中',
- self::EXPRESS_ALREADY_SIGN => '已签收',
- self::EXPRESS_PROBLEM => '问题件',
- self::EXPRESS_ABNORMAL => '查询异常',
- self::EXPRESS_NO_INFO => '暂无信息',
- ];
- return $data[$status];
- }
- }
|