作者 anyv
1 个管道 的构建 通过 耗费 0 秒

2

@@ -83,7 +83,7 @@ class OrderpageController extends WeChatBaseController{ @@ -83,7 +83,7 @@ class OrderpageController extends WeChatBaseController{
83 $salesman = Db::name('my_user') -> where('id',$teacher['pid']) -> find(); 83 $salesman = Db::name('my_user') -> where('id',$teacher['pid']) -> find();
84 } 84 }
85 //查询这个用户下添加的学校 85 //查询这个用户下添加的学校
86 - $school = Db::name('school') -> where("uid",$uid) -> select() -> toArray(); 86 + $school = Db::name('school') -> where("uid",$salesman['uid']) -> select() -> toArray();
87 87
88 if(!empty($school)){ 88 if(!empty($school)){
89 $grade_class = Db::name('grade_class') -> where("school_id",$school[0]['id']) -> select(); 89 $grade_class = Db::name('grade_class') -> where("school_id",$school[0]['id']) -> select();