正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -103,7 +103,8 @@ class ATemplateHtml extends \App\Models\Base{ | @@ -103,7 +103,8 @@ class ATemplateHtml extends \App\Models\Base{ | ||
| 103 | 103 | ||
| 104 | 104 | ||
| 105 | public static function _find($id){ | 105 | public static function _find($id){ |
| 106 | - return static::where('id',$id)->first(); | 106 | + $data = static::where('id',$id)->first(); |
| 107 | + return $data ? $data->toArray() : []; | ||
| 107 | } | 108 | } |
| 108 | 109 | ||
| 109 | /** | 110 | /** |
-
请 注册 或 登录 后发表评论