allow free plans

This commit is contained in:
xboard 2025-09-24 22:19:04 +08:00
parent 17b671c87e
commit 9ef40d4918

View File

@ -82,10 +82,10 @@ class PlanSave extends FormRequest
"prices.{$period}",
"价格必须是数字格式"
);
} elseif ($numericPrice <= 0) {
} elseif ($numericPrice < 0) {
$validator->errors()->add(
"prices.{$period}",
"价格必须大于 0(如不需要此周期请留空或设为 null)"
"价格必须大于等于 0(如不需要此周期请留空)"
);
}
}