6
0
Fork 0
release
李静 2022-01-13 11:31:45 +08:00
parent 27dc7dd04c
commit 4fed927528
1 changed files with 9 additions and 9 deletions

View File

@ -13,15 +13,15 @@ enum DealerLvl: int {
/**
* @return string
*/
public function text(): string
public static function texts(): array
{
return match ($this) {
static::None => '普通用户',
static::Gold => '金牌经销商',
static::Special => '特邀经销商',
static::Contracted => '签约经销商',
static::Secondary => '二级经销商',
static::Top => '一级经销商',
};
return [
static::None->value => '普通用户',
static::Gold->value => '金牌经销商',
static::Special->value => '特邀经销商',
static::Contracted->value => '签约经销商',
static::Secondary->value => '二级经销商',
static::Top->value => '一级经销商',
];
}
}