rkljw 4 天之前
父节点
当前提交
f96673227f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/JsonRpc/FormService.php

+ 1 - 1
app/JsonRpc/FormService.php

@@ -180,7 +180,7 @@ class FormService implements FormServiceInterface
             return Result::error('表单不存在');
         }   
         $data = array_filter($data,function($value){
-            return !empty($value);
+            return $value !== null;
         });
         GlobalTable::where(['id'=>$data['id']])->update($data);
         return Result::success('修改成功');