mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
修正Route类分组的参数
This commit is contained in:
@@ -217,8 +217,9 @@ 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;
|
||||||
$type = strtoupper($type);
|
$option = $option ?: self::$option;
|
||||||
|
$type = strtoupper($type);
|
||||||
if (strpos($type, '|')) {
|
if (strpos($type, '|')) {
|
||||||
foreach (explode('|', $type) as $val) {
|
foreach (explode('|', $type) as $val) {
|
||||||
self::rule($rule, $route, $val, $option, $pattern, $group);
|
self::rule($rule, $route, $val, $option, $pattern, $group);
|
||||||
|
|||||||
Reference in New Issue
Block a user