...
|
...
|
@@ -718,6 +718,8 @@ class PersonalcenterController extends WeChatBaseController{ |
|
|
|
|
|
//显示学校年级
|
|
|
$school = Db::name('school') -> where('uid',$uid) -> select() -> toArray();
|
|
|
$schools = [];
|
|
|
$grade_class_show = [];
|
|
|
if(count($school) != 0){
|
|
|
$grade_class = Db::name('grade_class') -> where("school_id",$school[0]['id']) -> select();
|
|
|
foreach ($grade_class as $key => $val){
|
...
|
...
|
@@ -730,9 +732,6 @@ class PersonalcenterController extends WeChatBaseController{ |
|
|
$schools[$key]['value'] = $val['id'];
|
|
|
$schools[$key]['text'] = $val['school'];
|
|
|
}
|
|
|
}else{
|
|
|
$schools = '';
|
|
|
$grade_class_show = '';
|
|
|
}
|
|
|
$this -> assign('school',json_encode($schools));
|
|
|
$this -> assign('grade_class_show',$grade_class_show);
|
...
|
...
|
|