Commit b17e81bb by 杨昕

status 设置默认值

parent ef3726d4
Pipeline #13152 passed with stages
in 44 seconds
......@@ -515,6 +515,12 @@ class MediaModel extends Eloquent
if (!isset($media['duration'])){
$media['duration'] = "0";
}
if (!isset($media['status'])){
$media['status'] = "1";
}
}catch (\Exception $exception){
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