为什么 labelStatus 传入 paid 时会返回 closed?
php
<?php
function labelStatus(string $status): string
{
$label = 'unknown';
switch ($status) {
case 'paid':
$label = 'ready';
case 'cancelled':
$label = 'closed';
break;
}
return $label;
}