Files
anmo/server/app/common/enum/WithdrawApplyEnum.php
2025-08-19 14:16:51 +08:00

48 lines
1.1 KiB
PHP
Executable File

<?php
namespace app\common\enum;
/**
* 提现申请枚举类
* Class WithdrawApplyEnum
* @package app\common\enum
*/
class WithdrawApplyEnum
{
const STATUS_WAIT = 1;
const STATUS_SUCCESS = 2;
const STATUS_FAILT = 3;
const STATUS_WAIT_WITHDRAW = 4;
const STATUS_WAIT_WITHDRAW_SUCCESS = 5;
const STATUS_WAIT_WITHDRAW_FAILT = 6;
/**
* @notes 状态列表
* @param $from
* @return string
* @author cjhao
* @date 2024/9/27 10:27
*/
public function getStatusDesc($from)
{
$desc = [
self::STATUS_WAIT => '待审核',
self::STATUS_SUCCESS => '审核成功',
self::STATUS_FAILT => '审核失败',
self::STATUS_WAIT_WITHDRAW => '提现中',
self::STATUS_WAIT_WITHDRAW_SUCCESS => '提现成功',
self::STATUS_WAIT_WITHDRAW_FAILT => '提现失败',
];
return $desc[$from] ?? '';
}
}