add:新增请求过滤空值方法

This commit is contained in:
JaguarJack
2021-01-17 09:39:18 +08:00
parent d4ec2d104f
commit 849493eea2
8 changed files with 127 additions and 2 deletions

View File

@@ -0,0 +1 @@
<?php

View File

@@ -0,0 +1 @@
<?php

View File

@@ -110,7 +110,7 @@ class User extends CatchController
*/
public function update($id, UpdateRequest $request)
{
$this->user->updateBy($id, $request->param());
$this->user->updateBy($id, $request->filterEmptyField()->param());
$user = $this->user->findBy($id);