dlhmaster/app/common/enum/CardEnum.php
2024-06-06 11:06:09 +08:00

26 lines
483 B
PHP

<?php
namespace app\common\enum;
class CardEnum
{
//提现状态
const STATUS_WAIT = 0; // 待提现
const STATUS_SUCCESS = 1; // 提现成功
//提现状态
public static function getStatusDesc($status = true)
{
$desc = [
self::STATUS_WAIT => '待核销',
self::STATUS_SUCCESS => '核销成功',
];
if ($status === true) {
return $desc;
}
return $desc[$status] ?? '';
}
}