|
|
@@ -45,14 +45,14 @@ enum FUND_TYPE: int
|
|
|
return self::type2Currency(self::tryFrom($value));
|
|
|
}
|
|
|
|
|
|
- public static function getName($fundId): string
|
|
|
+ public static function getName(FUND_TYPE $fundId): string
|
|
|
{
|
|
|
$list = [
|
|
|
self::FUND1->valueInt() => "金币",
|
|
|
self::FUND2->valueInt() => "钻石",
|
|
|
self::FUND3->valueInt() => "钻石冻结",
|
|
|
];
|
|
|
- return $list[$fundId] ??( '资金'.$fundId);
|
|
|
+ return $list[$fundId->valueInt()] ??( '资金'.$fundId);
|
|
|
|
|
|
}
|
|
|
|