...
|
...
|
@@ -3,6 +3,7 @@ |
|
|
namespace app\api\controller;
|
|
|
|
|
|
use app\common\controller\Api;
|
|
|
use app\common\model\ItemDetails;
|
|
|
|
|
|
/**
|
|
|
* 活动接口
|
...
|
...
|
@@ -203,13 +204,9 @@ class Activity extends Api |
|
|
'i.id'=> $id,
|
|
|
])
|
|
|
->find();
|
|
|
$images = db('item_details')->where('item_id',$id)->value('images');
|
|
|
if (!empty($images)){
|
|
|
$image = explode(',',$images);
|
|
|
foreach ($image as $k){
|
|
|
$data['images'] = cdnurl($image, true);
|
|
|
}
|
|
|
}
|
|
|
$model = new ItemDetails();
|
|
|
$list = $model->where('item_id',$id)->find()->toArray();
|
|
|
$data['images'] = $list['images'];
|
|
|
$data['holdtime'] = date('Y-m-d',$data['holdtime']);
|
|
|
$data['details'] = strip_tags($data['details']);
|
|
|
$this->success('获取项目详情成功', $data);
|
...
|
...
|
|