作者 开飞机的舒克

后台修改

... ... @@ -111,6 +111,7 @@ class Activity extends Api
$item['ronda'] = db('ronda')->where('id',$item['ronda_id'])->field('title,holdtime')->find();
$item['item'] = db('item')->where('id',$item['item_id'])->value('title');
$item['item_details'] = db('item_details')->where('item_id',$item['item_id'])->field('images,details')->find();
$item['item_details']['images'] = cdnurl($item['item_details']['images'], true);
return $item;
});
$this->success('项目场次日期', $data);
... ... @@ -140,6 +141,7 @@ class Activity extends Api
$data = db('item_details')
->where('item_id', $id)
->find();
$data['images'] = cdnurl($data['images'], true);
$this->success('', $data);
}
}
\ No newline at end of file
... ...
... ... @@ -201,11 +201,9 @@ class Bind extends Api
"code":"状态码",
"msg": "提示消息",
"data": {
"study_info": 学生信息{
"avatar": "学生头像",
"name": "学生名称",
"earn_score": "学生获得分数"
},
"study_score": 学生积分构成{
"total": 2,
"per_page": 3,
... ... @@ -230,7 +228,8 @@ class Bind extends Api
$campus_id = $this->request->param('campus_id');
$sid = \db('study')->where('user_id', $user['id'])->value('id');
//获取学生的信息
$data['study_info'] = \db('study')->where('id', $sid)->field('avatar,name,earn_score')->find();
$data = \db('study')->where('id', $sid)->field('avatar,name,earn_score')->find();
$data['avatar'] = cdnurl( $data['avatar'], true);
//获取雷达维度
$data['study_score'] = \db('study_score_log')
->distinct('item_id')
... ...
... ... @@ -3028,11 +3028,9 @@
"code":"状态码",
"msg": "提示消息",
"data": {
"study_info": 学生信息{
"avatar": "学生头像",
"name": "学生名称",
"earn_score": "学生获得分数"
},
"study_score": 学生积分构成{
"total": 2,
"per_page": 3,
... ... @@ -4310,7 +4308,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2023-03-10 15:05:27 <a href="./" target="_blank">校园活动</a>
Generated on 2023-03-10 15:16:00 <a href="./" target="_blank">校园活动</a>
</div>
</div>
... ...