@@ -250,6 +250,10 @@ class DynamicService
$dynamic['data'][$k]['img_url'] = json_decode($v['img_url'],true);
+ if(!$v['user']['tencent_im_user_id']){
+ $dynamic['data'][$k]['user']['tencent_im_user_id'] = "";
+ }
+
//计算距离 如果设置了位置,使用设置位置 否则使用定位位置
if(!$v['latitude']||!$v['longitude']){
//没有设置位置 取用户位置
@@ -205,6 +205,9 @@ class HomeService
array_unshift($photo,$video_arr);
}
+ if(!$userinfo->tencent_im_user_id){
+ $userinfo->tencent_im_user_id = "";
$userinfo->photo = $photo;
$userinfo->video = array_column($video_info,'url');