作者 开飞机的舒克

项目详情图片展示

... ... @@ -206,9 +206,12 @@ class Activity extends Api
])
->find();
$model = new ItemDetails();
$list = $model->where('item_id',$id)->find()->toArray();
$res = db('study')->where('user_id',$user['id'])->find();
if ($list['team_id'] == $res['team_id']){
if (empty($res)){
$list = $model->where(['item_id'=>$id])->find()->toArray();
$data['images'] = $list['images'];
}else{
$list = $model->where(['item_id'=>$id,'team_id'=>$res['team_id']])->find()->toArray();
$data['images'] = $list['images'];
}
$data['holdtime'] = date('Y-m-d',$data['holdtime']);
... ...
... ... @@ -6037,7 +6037,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2023-04-06 16:25:03 <a href="./" target="_blank">校园活动</a>
Generated on 2023-04-06 16:57:49 <a href="./" target="_blank">校园活动</a>
</div>
</div>
... ...