|
@@ -16,7 +16,8 @@
|
|
|
namespace app\admin\controller;
|
|
|
|
|
|
use think\admin\Controller;
|
|
|
-use think\Db;
|
|
|
+
|
|
|
+use think\facade\Db;
|
|
|
|
|
|
/**
|
|
|
* 学校管理
|
|
@@ -128,8 +129,8 @@ class School extends Controller
|
|
|
public function info()
|
|
|
{
|
|
|
$id = $this->request->get('id');
|
|
|
- $name = \think\facade\Db::name($this->table)->where('id',$id)->value('name');
|
|
|
- $this->title = $name.'--详情';
|
|
|
+ $name = Db::name($this->table)->where('id',$id)->value('name');
|
|
|
+ $this->title = $name;
|
|
|
$this->_form($this->table);
|
|
|
}
|
|
|
|