Commit fcd422e7 by 杨昕

Merge branch 'test' into 'master'

status 设置默认值

See merge request !29
parents 4f72086d b17e81bb
Pipeline #13153 passed with stages
in 43 seconds
...@@ -516,6 +516,12 @@ class MediaModel extends Eloquent ...@@ -516,6 +516,12 @@ class MediaModel extends Eloquent
if (!isset($media['duration'])){ if (!isset($media['duration'])){
$media['duration'] = "0"; $media['duration'] = "0";
} }
if (!isset($media['status'])){
$media['status'] = "1";
}
}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