1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace app\common\enum;
-
-
- class WithdrawEnum
- {
-
- const TYPE_BALANCE = 1;
- const TYPE_WECHAT_CHANGE = 2;
- const TYPE_WECHAT_CODE = 3;
- const TYPE_ALI_CODE = 4;
- const TYPE_BANK = 5;
-
-
- const STATUS_WAIT = 1;
- const STATUS_ING = 2;
- const STATUS_SUCCESS = 3;
- const STATUS_FAIL = 4;
-
-
- public static function getStatusDesc($status = true)
- {
- $desc = [
- self::STATUS_WAIT => '待提现',
- self::STATUS_ING => '提现中',
- self::STATUS_SUCCESS => '提现成功',
- self::STATUS_FAIL => '提现失败'
- ];
- if ($status === true) {
- return $desc;
- }
- return $desc[$status] ?? '';
- }
-
-
- public static function getTypeDesc($status = true)
- {
- $desc = [
- self::TYPE_BALANCE => '钱包余额',
- self::TYPE_WECHAT_CHANGE => '微信零钱',
- self::TYPE_BANK => '银行卡',
- self::TYPE_WECHAT_CODE => '微信收款码',
- self::TYPE_ALI_CODE => '支付宝收款码',
- ];
- if ($status === true) {
- return $desc;
- }
- return $desc[$status] ?? '';
- }
- }
|