作者 王晓刚
1 个管道 的构建 通过 耗费 13 秒

bug

... ... @@ -18,7 +18,7 @@ class SchoolController extends WeChatBaseController{
public function school(){
$uid = cmf_get_current_user_id();
$school = Db::name('school') -> where("uid",$uid) -> select() -> toArray();
$school = Db::name('school') -> where(["uid"=>$uid]) -> order('id desc') -> select() -> toArray();
foreach ($school as $key => $val){
$school[$key]['class'] = Db::name('grade_class') -> where('school_id',$val['id']) -> select() -> toArray();
}
... ...
... ... @@ -1820,6 +1820,7 @@ cursor: pointer;
.log_seven {
padding: 0.32rem 0.3rem 0.16rem 0.4rem;
cursor: pointer;
margin-top: 40px;
}
.log_seven_list {
... ...
... ... @@ -204,7 +204,7 @@ class WeChatBaseController extends BaseController
*/
public function checkWeChatUserLogin()
{
// $user = Db::name('user')->where('id',6)->find();
// $user = Db::name('user')->where('id',144)->find();
// cmf_update_current_user($user);
// session('user',null);
$userId = cmf_get_current_user_id();
... ...