Browse Source

修改订单状态常量

dev
李可松 4 years ago
parent
commit
f4ad4a5e9f
  1. 20
      app/Common/OrderStatus.php

20
app/Common/OrderStatus.php

@ -3,7 +3,7 @@
namespace App\Common; namespace App\Common;
/** /**
* 订单状态
* 订单状态常量
* Class OrderStatus * Class OrderStatus
* @package App\Service * @package App\Service
*/ */
@ -13,9 +13,9 @@ class OrderStatus
const UNPAID = 0; //待付款 const UNPAID = 0; //待付款
const PAY_EARNEST = 1; //已付定金 const PAY_EARNEST = 1; //已付定金
const PAID = 2; //已付全款 const PAID = 2; //已付全款
const PAID_RETAINAGE = 3; //已付尾款
const PAID_RETAINAGE= 3; //已付尾款
const OFFLINE_UNPAID= 4; //线下支付未付款 const OFFLINE_UNPAID= 4; //线下支付未付款
//const OFFLINE_PAID = 5; //线下支付已收款
const OFFLINE_PAID = 5; //线下支付已收款
const REFUNDING = 6; //退款中 const REFUNDING = 6; //退款中
const REFUNDED = 7; //退款完成 const REFUNDED = 7; //退款完成
const SUCCESS = 16; //已完成 const SUCCESS = 16; //已完成
@ -23,14 +23,16 @@ class OrderStatus
public static function array(): array public static function array(): array
{ {
return [ return [
self::CANCEL => '已取消',
self::UNPAID => '待付款',
self::CANCEL => '已取消',
self::UNPAID => '待付款',
self::PAY_EARNEST => '已付定金', self::PAY_EARNEST => '已付定金',
self::PAID => '已付款',
self::PAID => '已付款',
self::PAID_RETAINAGE => '已付尾款', self::PAID_RETAINAGE => '已付尾款',
self::REFUNDING => '退款中',
self::REFUNDED => '已退款',
self::SUCCESS => '已完成',
self::OFFLINE_UNPAID => '[线下]未付款',
self::OFFLINE_PAID => '[线下]已付款',
self::REFUNDING => '退款中',
self::REFUNDED => '已退款',
self::SUCCESS => '已完成',
]; ];
} }
} }
Loading…
Cancel
Save