作者 liyuhang

gx

@@ -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;