Skip to content

Commit

Permalink
修改不支持parseName方法的fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaobo.sun committed Oct 9, 2016
1 parent 2d25a57 commit 5c329fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use think\Hook;
use think\Config;
use think\Loader;

// 插件目录
define('ADDON_PATH', ROOT_PATH . 'addons' . DS);
Expand Down Expand Up @@ -104,8 +105,8 @@ function addon_url($url, $param = [])
{
$url = parse_url($url);
$case = config('url_convert');
$addons = $case ? parse_name($url['scheme']) : $url['scheme'];
$controller = $case ? parse_name($url['host']) : $url['host'];
$addons = $case ? Loader::parseName($url['scheme']) : $url['scheme'];
$controller = $case ? Loader::parseName($url['host']) : $url['host'];
$action = trim($case ? strtolower($url['path']) : $url['path'], '/');

/* 解析URL带的参数 */
Expand Down

0 comments on commit 5c329fd

Please sign in to comment.