| xqd
@@ -291,8 +291,13 @@ class UserController extends Controller
|
|
|
$userinfo->photo = !empty($userinfo->photo)?json_decode($userinfo->photo,true):[];
|
|
|
|
|
|
$video_info = !empty($userinfo->video)?json_decode($userinfo->video,true):[];
|
|
|
-
|
|
|
-// $userinfo->video = array_column($video_info,'url');
|
|
|
+ if (count($video_info)>0){
|
|
|
+ foreach ($video_info as $k=>$v){
|
|
|
+ if(!isset($v['thumb'])){
|
|
|
+ $video_info[$k]['thumb'] = "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
$userinfo->video = $video_info;
|
|
|
}catch (\Exception $exception){
|
|
|
return $this->response->errorForbidden($exception->getMessage());
|