Commit 343ea20b by 杨昕

修改默认时长为0字符串

parent b7b2827f
Pipeline #10664 passed with stages
in 44 seconds
...@@ -464,6 +464,10 @@ class MediaModel extends Eloquent ...@@ -464,6 +464,10 @@ class MediaModel extends Eloquent
if (empty($media)){ if (empty($media)){
throw new \Exception("媒资不存在"); throw new \Exception("媒资不存在");
} }
if (!isset($media['duration'])){
$media['duration'] = "0";
}
}catch (\Exception $exception){ }catch (\Exception $exception){
throw new DatabaseException($exception->getMessage()); throw new DatabaseException($exception->getMessage());
......
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