完成学校与教师
This commit is contained in:
1 parent
25cc4897eb
commit
0dbee995fc
41 files changed
+2118
-37
No files matched your search
@@ -24,12 +24,13 @@ class School extends Base
|
||||
return $this->getcategory($value);
|
||||
}
|
||||
|
||||
|
||||
// category查询
|
||||
// 获取类别名
|
||||
public function getcategory($id)
|
||||
{
|
||||
return db('category')
|
||||
->where('id',$id)
|
||||
->value('title');
|
||||
return db('category')
|
||||
->where('id',$id)
|
||||
->value('title');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user