mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-23 19:37:35 +08:00
fix(coupon): correct knows issues
This commit is contained in:
@@ -114,7 +114,8 @@ class PlanService
|
||||
*/
|
||||
public static function convertToLegacyPeriod(string $period): string
|
||||
{
|
||||
return Plan::LEGACY_PERIOD_MAPPING[$period] ?? $period;
|
||||
$flippedMapping = array_flip(Plan::LEGACY_PERIOD_MAPPING);
|
||||
return $flippedMapping[$period] ?? $period;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user