正在显示
1 个修改的文件
包含
4 行增加
和
5 行删除
| @@ -106,8 +106,7 @@ class Base extends Model | @@ -106,8 +106,7 @@ class Base extends Model | ||
| 106 | public function addReturnId($data){ | 106 | public function addReturnId($data){ |
| 107 | $data['created_at'] = date('Y-m-d H:i:s'); | 107 | $data['created_at'] = date('Y-m-d H:i:s'); |
| 108 | $data['updated_at'] = $data['created_at']; | 108 | $data['updated_at'] = $data['created_at']; |
| 109 | - $filLabelData = Arr::only($data, $this->getFillable()); | ||
| 110 | - return $this->insertGetId($filLabelData); | 109 | + return $this->insertGetId($data); |
| 111 | } | 110 | } |
| 112 | 111 | ||
| 113 | /** | 112 | /** |
| @@ -123,9 +122,9 @@ class Base extends Model | @@ -123,9 +122,9 @@ class Base extends Model | ||
| 123 | } | 122 | } |
| 124 | $query = $this->formatQuery($condition); | 123 | $query = $this->formatQuery($condition); |
| 125 | $data['updated_at'] = date('Y-m-d H:i:s'); | 124 | $data['updated_at'] = date('Y-m-d H:i:s'); |
| 126 | - $filLabelData = Arr::only($data, $this->getFillable()); | ||
| 127 | - file_put_contents(storage_path('logs/lyh_error.log'), var_export($filLabelData, true) . PHP_EOL, FILE_APPEND); | ||
| 128 | - return $query->update($filLabelData); | 125 | +// $filLabelData = Arr::only($data, $this->getFillable()); |
| 126 | +// file_put_contents(storage_path('logs/lyh_error.log'), var_export($filLabelData, true) . PHP_EOL, FILE_APPEND); | ||
| 127 | + return $query->update($data); | ||
| 129 | 128 | ||
| 130 | } | 129 | } |
| 131 | 130 |
-
请 注册 或 登录 后发表评论