WithdrawStatus.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace fast;
  3. /**
  4. * 资产账变类型类
  5. */
  6. class WithdrawStatus
  7. {
  8. /**
  9. * 待处理
  10. */
  11. const StatusPending = 0;
  12. /**
  13. * 已抢单
  14. */
  15. const StatusLocked = 100;
  16. /**
  17. * 通过-自动
  18. */
  19. const StatusApprove = 200;
  20. /**
  21. * 拒绝
  22. */
  23. const StatusRefuse = 300;
  24. /**
  25. * 通过-手动打款
  26. */
  27. const StatusManual = 400;
  28. /**
  29. * 提现中
  30. */
  31. const StatusConduct = 500;
  32. private static array $actions = [
  33. self::StatusPending => '待处理',
  34. self::StatusLocked => '已抢单',
  35. self::StatusApprove => '通过-自动打款',
  36. self::StatusRefuse => '拒绝',
  37. self::StatusManual => '通过-手动打款',
  38. self::StatusConduct => '提现中',
  39. ];
  40. public static function getText(int $value): string
  41. {
  42. if (array_key_exists($value, self::$actions)) {
  43. return self::$actions[$value];
  44. } else {
  45. return Common::getUnknownText();
  46. }
  47. }
  48. }