正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -59,7 +59,7 @@ class Base extends Model | @@ -59,7 +59,7 @@ class Base extends Model | ||
| 59 | */ | 59 | */ |
| 60 | public function read($condition,$files = ['*']) | 60 | public function read($condition,$files = ['*']) |
| 61 | { | 61 | { |
| 62 | - $query = formatQuery($condition); | 62 | + $query = $this->formatQuery($condition); |
| 63 | $info = $query->select($files)->where($condition)->first(); | 63 | $info = $query->select($files)->where($condition)->first(); |
| 64 | if (empty($info)) { | 64 | if (empty($info)) { |
| 65 | return false; | 65 | return false; |
-
请 注册 或 登录 后发表评论