Commit 1d26bb56 by 杨树贤

优化空格清楚

parent 46ba4a9d
...@@ -27,6 +27,7 @@ class SupplierExaminationService ...@@ -27,6 +27,7 @@ class SupplierExaminationService
//保存 //保存
public function saveSupplierExamination($data) public function saveSupplierExamination($data)
{ {
$data = BatchTrim($data);
$data['examine_time'] = strtotime($data['examine_time']); $data['examine_time'] = strtotime($data['examine_time']);
if (!empty($data['id'])) { if (!empty($data['id'])) {
$data['update_time'] = time(); $data['update_time'] = time();
......
...@@ -13,6 +13,7 @@ class SupplierExaminationValidator ...@@ -13,6 +13,7 @@ class SupplierExaminationValidator
//因为控制器那边已经被之前的人魔改的难用的一比,而且控制器那边还接收了一大堆统一变量 //因为控制器那边已经被之前的人魔改的难用的一比,而且控制器那边还接收了一大堆统一变量
public function checkSave($params) public function checkSave($params)
{ {
$params = BatchTrim($params);
//整理下请求数据 //整理下请求数据
$rules = [ $rules = [
"supplier_name" => "required|max:100", "supplier_name" => "required|max:100",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment