Commit e3d8a62a authored by zhuwei's avatar zhuwei

优化

parent 32ad4b72
...@@ -1029,7 +1029,7 @@ class HouseService ...@@ -1029,7 +1029,7 @@ class HouseService
public function getHouseVideoList($house_id) public function getHouseVideoList($house_id)
{ {
$m_video = new GHousesVideo(); $m_video = new GHousesVideo();
$result_ = [];
$field = 'id,video_name,video_image,upload_id,upload_name,upload_phone,check_name,create_time,check_time'; $field = 'id,video_name,video_image,upload_id,upload_name,upload_phone,check_name,create_time,check_time';
$params['house_id'] = $house_id; $params['house_id'] = $house_id;
$params['is_del'] = 0; $params['is_del'] = 0;
...@@ -1050,8 +1050,8 @@ class HouseService ...@@ -1050,8 +1050,8 @@ class HouseService
$result_[$k]['check_name'] = $v['check_name']; $result_[$k]['check_name'] = $v['check_name'];
$result_[$k]['upload_name'] = $v['upload_name']; $result_[$k]['upload_name'] = $v['upload_name'];
$result_[$k]['upload_phone'] = $v['upload_phone']; $result_[$k]['upload_phone'] = $v['upload_phone'];
$result_[$k]['video_image'] = $v['video_image'] ? $internet_path.$v['video_image'] : 'http://n.sinaimg.cn/ent/transform/20170921/FVGl-fymesmp0851702.jpg'; $result_[$k]['video_image'] = $v['video_image'] ? $internet_path . $v['video_image'] : '';
$result_[$k]['video_path'] = $internet_path.$v['video_name']; $result_[$k]['video_path'] = $v['video_path'] ? $internet_path . $v['video_path'] : '';
$result_[$k]['create_time'] = $v['create_time']; $result_[$k]['create_time'] = $v['create_time'];
$result_[$k]['check_time'] = $v['check_time']; $result_[$k]['check_time'] = $v['check_time'];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment