xiaogang 3 năm trước cách đây
mục cha
commit
927c45be4d

+ 1 - 1
app/Http/Controllers/Api/HomeController.php

xqd
@@ -107,7 +107,7 @@ class HomeController extends Controller
         }catch (AuthException $exception){
             return $this->response->errorUnauthorized($exception->getMessage());
         }catch (\Exception $exception){
-            return $this->response->errorForbidden($exception);
+            return $this->response->errorForbidden($exception->getMessage());
         }
         return response()->json($res);
     }

+ 1 - 1
app/Services/HomeService.php

xqd
@@ -193,7 +193,7 @@ class HomeService
         if(count($video_info)>0){
             foreach ($video_info as $k=>$v){
                 $video_arr = array();
-                $video_arr['url'] = $v['url'];
+                $video_arr['url'] = isset($v['url'])?$v['url']:"";
                 $video_arr['thumb'] = isset($v['thumb'])?$v['thumb']:"";
                 $video_arr['state'] = 0;
                 array_unshift($photo,$video_arr);