diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f08ff9..db3902f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v6.0.73 / 2020-07-09 +- 增加路由服务 + ## v6.0.72 / 2020-07-09 - 删除网易云服务 diff --git a/src/common.php b/src/common.php index 7b4a99b..1eda887 100644 --- a/src/common.php +++ b/src/common.php @@ -25,7 +25,7 @@ use think\db\exception\ModelNotFoundException; /** * 定义当前版本 */ -const VERSION = '6.0.72'; +const VERSION = '6.0.73'; if (!function_exists('get_ip_info')) { diff --git a/src/service/RouteService.php b/src/service/RouteService.php new file mode 100644 index 0000000..2beb23d --- /dev/null +++ b/src/service/RouteService.php @@ -0,0 +1,42 @@ +query() : ''); + elseif ($status == 301) { + header('HTTP/1.1 301 Moved Permanently'); + header("Location: {$url}" . $parameter == true ? request()->query() : ''); + } + } +}