海南旅游SAAS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
858 B

  1. <?php
  2. namespace App\Common;
  3. /**
  4. * 订单状态码
  5. * Class OrderStatus
  6. * @package App\Service
  7. */
  8. class OrderStatus
  9. {
  10. const CANCEL = -1; //取消
  11. const UNPAID = 0; //待付款
  12. const PAY_EARNEST = 1; //已付定金
  13. const PAID = 2; //已付全款
  14. const PAID_RETAINAGE = 3; //已付尾款
  15. const OFFLINE_UNPAID= 4; //线下支付未付款
  16. //const OFFLINE_PAID = 5; //线下支付已收款
  17. const REFUNDING = 6; //退款中
  18. const REFUNDED = 7; //退款完成
  19. const SUCCESS = 16; //已完成
  20. public static function array()
  21. {
  22. return [
  23. self::CANCEL => '已取消',
  24. self::UNPAID => '待付款',
  25. self::PAY_EARNEST => '已付定金',
  26. self::PAID => '已付款',
  27. self::PAID_RETAINAGE => '已付尾款',
  28. self::REFUNDING => '退款中',
  29. self::REFUNDED => '已退款',
  30. self::SUCCESS => '已完成',
  31. ];
  32. }
  33. }