diff --git a/CHANGELOG.md b/CHANGELOG.md index b4c690a7b..dd736bf4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ -# v1.0.7 - TBD +# v1.0.8 - TBD + +# v1.0.7 - 2019-07-26 ## Fixed diff --git a/doc/zh/middleware/middleware.md b/doc/zh/middleware/middleware.md index 6be3c9e52..18ed5dd2d 100644 --- a/doc/zh/middleware/middleware.md +++ b/doc/zh/middleware/middleware.md @@ -141,7 +141,6 @@ class IndexController { /** - * @AutoController() * @Middlewares({ * @Middleware(BarMiddleware::class) * }) @@ -290,4 +289,4 @@ location / { return 204; } } -``` \ No newline at end of file +``` diff --git a/doc/zh/request.md b/doc/zh/request.md index eae24452c..e177f8739 100644 --- a/doc/zh/request.md +++ b/doc/zh/request.md @@ -179,8 +179,8 @@ $name = $request->query(); $name = $request->input('user.name'); // 存在则返回,不存在则返回默认值 Hyperf $name = $request->input('user.name', 'Hyperf'); -// 不传递参数则以数组形式返回所有 Json 数据 -$name = $request->input(); +// 以数组形式返回所有 Json 数据 +$name = $request->all(); ``` ### 确定是否存在输入值 @@ -272,4 +272,4 @@ $file->moveTo('/foo/bar.jpg'); if ($file->isMoved()) { // ... } -``` \ No newline at end of file +``` diff --git a/src/service-governance/src/Listener/RegisterServiceListener.php b/src/service-governance/src/Listener/RegisterServiceListener.php index f03bb911a..af521fa7f 100644 --- a/src/service-governance/src/Listener/RegisterServiceListener.php +++ b/src/service-governance/src/Listener/RegisterServiceListener.php @@ -74,9 +74,6 @@ class RegisterServiceListener implements ListenerInterface */ public function process(object $event) { - foreach ($this->consulAgent->services()->json() as $service) { - $this->consulAgent->deregisterService($service['ID']); - } $services = $this->serviceManager->all(); $servers = $this->getServers(); foreach ($services as $serviceName => $paths) {