wupengfei 2 năm trước cách đây
mục cha
commit
74fe9fabff

+ 1 - 0
.idea/workspace.xml

@@ -3,6 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/api/controller/VideoDemand.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/VideoDemand.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/common.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/common.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />

+ 1 - 0
application/api/controller/VideoDemand.php

@@ -270,6 +270,7 @@ class VideoDemand extends Base
             $json_res =  json_encode($res,true);
             $res_arr = json_decode($json_res,true);
         }catch (\Exception $error){
+            var_dump($error->getMessage());
            return [];
         }
         return $res_arr['body'];

+ 0 - 1
application/common.php

@@ -344,7 +344,6 @@ function http_post_json($url, $jsonStr,$token_res)
 function getVideoTime($ali_id)
 {
     $res = (new \app\api\controller\VideoDemand())->getVideoInfo($ali_id);
-    var_dump($res);
     if(empty($res['videoBase'])) return ['duration'=>0 ,'duration_str'=>''];
     return ['duration'=>intval($res['videoBase']['duration']) ,'duration_str'=>get_stay_time(intval($res['videoBase']['duration']))];