...
|
...
|
@@ -55,6 +55,13 @@ class Index extends Api |
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
if (empty($list)){
|
|
|
$res = \db('study')
|
|
|
->where('user_id', $userinfo['id'])
|
|
|
->field('name,grade,school,earn_score')
|
|
|
->find();
|
|
|
$this->success('获取成功', $res);
|
|
|
}
|
|
|
$this->success('获取成功', $list);
|
|
|
}
|
|
|
|
...
|
...
|
|