|
@@ -100,26 +100,6 @@ class OrderEnum
|
|
|
{
|
|
|
return self::getInvoiceStatusList()[$invoiceStatus] ?? '未知';
|
|
|
}
|
|
|
-
|
|
|
- public static function getActivityTypeList()
|
|
|
- {
|
|
|
- return [
|
|
|
- self::ACTIVITY_TYPE_NORMAL => '普通活动',
|
|
|
- self::ACTIVITY_TYPE_SECKILL => '秒杀活动',
|
|
|
- self::ACTIVITY_TYPE_GROUP => '拼团活动',
|
|
|
- self::ACTIVITY_TYPE_PRESALE => '预售活动',
|
|
|
- self::ACTIVITY_TYPE_DISCOUNT => '折扣活动',
|
|
|
- ];
|
|
|
- }
|
|
|
-
|
|
|
- public static function getActivityTypeText($activityType)
|
|
|
- {
|
|
|
- return self::getActivityTypeList()[$activityType] ?? $activityType;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
const STATUS_TEXT_MAP = [
|
|
|
self::STATUS_CREATE => '未付款',
|
|
|
self::STATUS_CANCEL => "已取消",
|
|
@@ -149,6 +129,9 @@ class OrderEnum
|
|
|
self::STATUS_REFUND_CONFIRM => 'refund_time',
|
|
|
self::STATUS_AUTO_CANCEL => 'expire_time',
|
|
|
self::STATUS_CANCEL => 'cancel_time',
|
|
|
+ self::STATUS_INSPECTION => 'inspection_time',
|
|
|
+ self::STATUS_INSPECTION_PASS => 'inspection_time',
|
|
|
+ self::STATUS_INSPECTION_FAIL => 'inspection_time',
|
|
|
];
|
|
|
|
|
|
public static function isValidOrderStatus($status)
|
|
@@ -167,7 +150,7 @@ class OrderEnum
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
+ ####### 用户前端传的参数
|
|
|
const SHOW_TYPE_ALL = 0;//全部订单
|
|
|
const SHOW_TYPE_WAIT_PAY = 1;//待付款订单
|
|
|
const SHOW_TYPE_WAIT_DELIVERY = 2;//待发货订单
|
|
@@ -176,11 +159,28 @@ class OrderEnum
|
|
|
|
|
|
|
|
|
const SHOW_TYPE_STATUS_MAP = [
|
|
|
- self::SHOW_TYPE_ALL => [],
|
|
|
- self::SHOW_TYPE_WAIT_PAY => [self::STATUS_CREATE],
|
|
|
- self::SHOW_TYPE_WAIT_DELIVERY => [self::STATUS_PAY],
|
|
|
- self::SHOW_TYPE_WAIT_RECEIPT => [self::STATUS_SHIP],
|
|
|
- self::SHOW_TYPE_WAIT_COMMENT => [self::STATUS_CONFIRM],
|
|
|
+ self::SHOW_TYPE_ALL => [
|
|
|
+ self::STATUS_CANCEL,
|
|
|
+ self::STATUS_AUTO_CANCEL,
|
|
|
+ self::STATUS_ADMIN_CANCEL,
|
|
|
+ self::STATUS_CREATE,
|
|
|
+ self::STATUS_PAY,
|
|
|
+ self::STATUS_SHIP,
|
|
|
+ self::STATUS_CONFIRM,
|
|
|
+ self::STATUS_COMMENT,
|
|
|
+ ],
|
|
|
+ self::SHOW_TYPE_WAIT_PAY => [
|
|
|
+ self::STATUS_CREATE
|
|
|
+ ],
|
|
|
+ self::SHOW_TYPE_WAIT_DELIVERY => [
|
|
|
+ self::STATUS_PAY
|
|
|
+ ],
|
|
|
+ self::SHOW_TYPE_WAIT_RECEIPT => [
|
|
|
+ self::STATUS_SHIP
|
|
|
+ ],
|
|
|
+ self::SHOW_TYPE_WAIT_COMMENT => [
|
|
|
+ self::STATUS_CONFIRM
|
|
|
+ ],
|
|
|
];
|
|
|
|
|
|
const SHOW_INSPECTION_TYPE_STATUS_MAP = [
|