allow free plans

This commit is contained in:
xboard
2025-09-24 22:19:04 +08:00
parent ccd65f26d4
commit c5ac76823d

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如不需要此周期请留空"
);
}
}