作者 开飞机的舒克

扫码加分问题修改

... ... @@ -167,9 +167,8 @@ class Index extends Api
$user = $this->auth->getUserinfo();
$find = \db('study')->where('user_id',$user['id'])->find();
$res = \db('study_score_log')->where('study_id',$find['id'])->column('campus_id');
$data = [];
foreach ($res as $k){
$data = \db('campus')->where('id',$k)->select();
$data = \db('campus')->where('id',$k)->find();
}
// $data = db('campus c')
// ->join('activity a','a.id = c.activity_id')
... ...