修复插件api异常

This commit is contained in:
AOAOSTAR 2022-01-05 22:23:17 +08:00
parent 49fa93195e
commit 092d52b29e
3 changed files with 2 additions and 2 deletions

View File

@ -3,4 +3,4 @@
// | 版本号
// +----------------------------------------------------------------------
define('VERSION', 'v1.1');
define('VERSION', 'v1.1.1');

Binary file not shown.

Before

Width:  |  Height:  |  Size: 598 KiB

After

Width:  |  Height:  |  Size: 979 KiB

View File

@ -16,7 +16,7 @@ Route::rule('api/:alias/[:method]', function () {
return msg("error", "该Api不存在该方法");
}
return $app->$method();
})->pattern(['alias' => '[\w|\-/]+'])->middleware([\app\middleware\RequestRecord::class]);
})->middleware([\app\middleware\RequestRecord::class]);
Route::get(':alias', function () {
$alias = plugin_alias_get();