mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 08:02:48 +08:00
改进Url地址生成
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
namespace think;
|
namespace think;
|
||||||
|
|
||||||
use think\Config;
|
use think\Config;
|
||||||
|
use think\Loader;
|
||||||
use think\Request;
|
use think\Request;
|
||||||
use think\Route;
|
use think\Route;
|
||||||
|
|
||||||
@@ -157,7 +158,7 @@ class Url
|
|||||||
$module = $module ? $module . '/' : '';
|
$module = $module ? $module . '/' : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$controller = $request->controller();
|
$controller = Loader::parseName($request->controller());
|
||||||
if ('' == $url) {
|
if ('' == $url) {
|
||||||
// 空字符串输出当前的 模块/控制器/操作
|
// 空字符串输出当前的 模块/控制器/操作
|
||||||
$url = $module . $controller . '/' . $request->action();
|
$url = $module . $controller . '/' . $request->action();
|
||||||
|
|||||||
Reference in New Issue
Block a user