Commit 91a643dc by 杨昕

code format

parent 4b0762a0
Pipeline #10548 passed with stages
in 40 seconds
...@@ -529,7 +529,7 @@ class MediaModel extends Eloquent ...@@ -529,7 +529,7 @@ class MediaModel extends Eloquent
public static function updateMediaStatus($request,$media_id){ public static function updateMediaStatus($request,$media_id){
try{ try{
$media = MediaModel::where('_id',$media_id); $media = MediaModel::where('_id',$media_id)->first();
if (empty($media)){ if (empty($media)){
throw new \Exception("媒资不存在"); throw new \Exception("媒资不存在");
} }
...@@ -541,7 +541,7 @@ class MediaModel extends Eloquent ...@@ -541,7 +541,7 @@ class MediaModel extends Eloquent
$flag = MediaModel::where("_id",$media_id)->update($data); $flag = MediaModel::where("_id",$media_id)->update($data);
if (!$flag){ if (!$flag){
throw new \Exception("更新失败"); throw new \Exception("Status更新失败");
} }
LogModel::addlog(["更新媒资信息Status=>".$media_id,$data]); LogModel::addlog(["更新媒资信息Status=>".$media_id,$data]);
......
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