Merge branch 'master' into dev

This commit is contained in:
李铭昕 2019-07-27 09:00:37 +08:00
commit df3fcbbb6f
4 changed files with 7 additions and 9 deletions

View File

@ -1,4 +1,6 @@
# v1.0.7 - TBD
# v1.0.8 - TBD
# v1.0.7 - 2019-07-26
## Fixed

View File

@ -141,7 +141,6 @@ class IndexController
{
/**
* @AutoController()
* @Middlewares({
* @Middleware(BarMiddleware::class)
* })
@ -290,4 +289,4 @@ location / {
return 204;
}
}
```
```

View File

@ -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()) {
// ...
}
```
```

View File

@ -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) {