Commit 6808e24c authored by zhuwei's avatar zhuwei

获取商铺图片 redis 头像

parent e72a8c7a
...@@ -10,6 +10,7 @@ namespace app\index\service; ...@@ -10,6 +10,7 @@ namespace app\index\service;
use app\api_broker\service\PushMessageService; use app\api_broker\service\PushMessageService;
use app\api_broker\service\RedisCacheService;
use app\api_broker\service\VipService; use app\api_broker\service\VipService;
use app\extra\RedisExt; use app\extra\RedisExt;
use app\index\validate\HouseValidate; use app\index\validate\HouseValidate;
...@@ -1125,6 +1126,8 @@ class HouseService ...@@ -1125,6 +1126,8 @@ class HouseService
public function getHouseVideoList($house_id) public function getHouseVideoList($house_id)
{ {
$m_video = new GHousesVideo(); $m_video = new GHousesVideo();
$redis_cache = new RedisCacheService();
$result_ = []; $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;
...@@ -1141,15 +1144,20 @@ class HouseService ...@@ -1141,15 +1144,20 @@ class HouseService
} }
foreach ($result as $k=>$v) { foreach ($result as $k=>$v) {
$agent_data = $redis_cache->getRedisCache(2, $v['upload_id']);
$result_[$k]['id'] = $v['id']; $result_[$k]['id'] = $v['id'];
$result_[$k]['upload_id'] = $v['upload_id']; $result_[$k]['upload_id'] = $v['upload_id'];
$result_[$k]['check_name'] = $v['check_name']; $result_[$k]['check_name'] = $v['check_name'];
$result_[$k]['upload_name'] = $v['upload_name']; #上传人信息
$result_[$k]['upload_phone'] = $v['upload_phone']; $result_[$k]['upload_name'] = $agent_data['name'];
$result_[$k]['video_image'] = $v['video_image'] ? $internet_path . $v['video_image'] : ''; $result_[$k]['upload_phone'] = $agent_data['phone'];
$result_[$k]['video_path'] = $v['video_name'] ? $internet_path . $v['video_name'] : ''; $result_[$k]['upload_img'] = AGENTHEADERIMGURL . $agent_data['img'];
$result_[$k]['create_time'] = $v['create_time'];
$result_[$k]['check_time'] = $v['check_time']; $result_[$k]['video_image'] = $v['video_image'] ? $internet_path . $v['video_image'] : '';
$result_[$k]['video_path'] = $v['video_name'] ? $internet_path . $v['video_name'] : '';
$result_[$k]['create_time'] = $v['create_time'];
$result_[$k]['check_time'] = $v['check_time'];
} }
return $result_; return $result_;
} }
......
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