|
@@ -276,6 +276,9 @@ class Bind extends Api |
|
@@ -276,6 +276,9 @@ class Bind extends Api |
276
|
$user = $this->auth->getUserinfo();
|
276
|
$user = $this->auth->getUserinfo();
|
277
|
$cid = $this->request->param('cid');
|
277
|
$cid = $this->request->param('cid');
|
278
|
$sid = \db('study')->where('user_id', $user['id'])->value('id');
|
278
|
$sid = \db('study')->where('user_id', $user['id'])->value('id');
|
|
|
279
|
+ //获取学生的信息
|
|
|
280
|
+ $data = \db('study')->where('id', $sid)->field('avatar,name,earn_score')->find();
|
|
|
281
|
+ $data['avatar'] = cdnurl( $data['avatar'], true);
|
279
|
//获取雷达维度
|
282
|
//获取雷达维度
|
280
|
$data['item'] = \db('study_score_log')
|
283
|
$data['item'] = \db('study_score_log')
|
281
|
->distinct('item_id')
|
284
|
->distinct('item_id')
|