Skip to content

Commit 7841fa8

Browse files
committed
新增插件升级时备份插件功能
修复特殊情况下方法无法请求的BUG
1 parent 7c84a41 commit 7841fa8

File tree

3 files changed

+145
-202
lines changed

3 files changed

+145
-202
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"homepage": "https://github.com/karsonzhang/fastadmin-addons",
55
"license": "Apache-2.0",
66
"minimum-stability": "dev",
7-
"version": "1.1.5",
7+
"version": "1.1.6",
88
"authors": [
99
{
1010
"name": "karsonzhang",

src/addons/Route.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public function execute($addon = null, $controller = null, $action = null)
2525
$convert = Config::get('url_convert');
2626
$filter = $convert ? 'strtolower' : 'trim';
2727

28-
$addon = $addon ? call_user_func($filter, $addon) : '';
29-
$controller = $controller ? call_user_func($filter, $controller) : 'index';
30-
$action = $action ? call_user_func($filter, $action) : 'index';
28+
$addon = $addon ? trim(call_user_func($filter, $addon)) : '';
29+
$controller = $controller ? trim(call_user_func($filter, $controller)) : 'index';
30+
$action = $action ? trim(call_user_func($filter, $action)) : 'index';
3131

3232
Hook::listen('addon_begin', $request);
3333
if (!empty($addon) && !empty($controller) && !empty($action)) {

0 commit comments

Comments
 (0)