mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-29 23:47:27 +08:00
allow free plans
This commit is contained in:
@@ -82,10 +82,10 @@ class PlanSave extends FormRequest
|
|||||||
"prices.{$period}",
|
"prices.{$period}",
|
||||||
"价格必须是数字格式"
|
"价格必须是数字格式"
|
||||||
);
|
);
|
||||||
} elseif ($numericPrice <= 0) {
|
} elseif ($numericPrice < 0) {
|
||||||
$validator->errors()->add(
|
$validator->errors()->add(
|
||||||
"prices.{$period}",
|
"prices.{$period}",
|
||||||
"价格必须大于 0(如不需要此周期请留空或设为 null)"
|
"价格必须大于等于 0(如不需要此周期请留空)"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user