mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 03:37:44 +08:00
Merge branch 'master' into dev
This commit is contained in:
commit
df3fcbbb6f
@ -1,4 +1,6 @@
|
||||
# v1.0.7 - TBD
|
||||
# v1.0.8 - TBD
|
||||
|
||||
# v1.0.7 - 2019-07-26
|
||||
|
||||
## Fixed
|
||||
|
||||
|
@ -141,7 +141,6 @@ class IndexController
|
||||
{
|
||||
|
||||
/**
|
||||
* @AutoController()
|
||||
* @Middlewares({
|
||||
* @Middleware(BarMiddleware::class)
|
||||
* })
|
||||
@ -290,4 +289,4 @@ location / {
|
||||
return 204;
|
||||
}
|
||||
}
|
||||
```
|
||||
```
|
||||
|
@ -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()) {
|
||||
// ...
|
||||
}
|
||||
```
|
||||
```
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user