完成学校与教师

This commit is contained in:
cxdbz committed 2018-10-28 22:37:37 +08:00
1 parent 25cc4897eb
commit 0dbee995fc
41 files changed
+2118 -37

No files matched your search

+6 -5
View File
@@ -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');
}
}