songxingwei 4 years ago
parent
commit
6ab8cfb23a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/School.php

+ 1 - 1
app/admin/controller/School.php

@@ -128,7 +128,7 @@ class School extends Controller
     public function info()
     {
         $id = $this->request->get('id');
-        $name = Db::name($this->table)->where('id',$id)->value('name');
+        $name = \think\facade\Db::name($this->table)->where('id',$id)->value('name');
         $this->title = $name.'--详情';
         $this->_form($this->table);
     }