mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
修正Route类分组的参数
This commit is contained in:
@@ -218,6 +218,7 @@ class Route
|
|||||||
public static function rule($rule, $route = '', $type = '*', $option = [], $pattern = [], $group = '')
|
public static function rule($rule, $route = '', $type = '*', $option = [], $pattern = [], $group = '')
|
||||||
{
|
{
|
||||||
$group = $group ?: self::$group;
|
$group = $group ?: self::$group;
|
||||||
|
$option = $option ?: self::$option;
|
||||||
$type = strtoupper($type);
|
$type = strtoupper($type);
|
||||||
if (strpos($type, '|')) {
|
if (strpos($type, '|')) {
|
||||||
foreach (explode('|', $type) as $val) {
|
foreach (explode('|', $type) as $val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user