1234567891011121314151617181920212223242526272829303132 |
- <?php
-
-
- namespace app\common\enum;
-
-
- class WithdrawalEnum
- {
- const APPLY_STATUS = 0;
- const HANDLE_STATUS = 1;
- const SUCCESS_STATUS = 2;
- const ERROR_STATUS = 3;
-
-
-
- public static function getStatusDesc($from = true){
- $desc = [
- self::APPLY_STATUS => '待提现',
- self::HANDLE_STATUS => '提现中',
- self::SUCCESS_STATUS => '提现成功',
- self::ERROR_STATUS => '提现失败',
- ];
- if(true === $from){
- return $desc;
- }
- return $desc[$from];
- }
- }
|