26 lines
483 B
PHP
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] ?? '';
|
|
}
|
|
|
|
} |