Commit 1c2164ec by 杨昕

code format

parent 0cd4fba0
Pipeline #10886 passed with stages
in 41 seconds
......@@ -336,7 +336,7 @@ class MediaModel extends Eloquent
$flag = MediaModel::where("_id",$id)->update($data);
if (!$flag){
LogModel::addlog(["更新失败=>".$id,$data]);
throw new \Exception("更新失败");
}
LogModel::addlog(["更新媒资信息=>".$id,$data]);
......@@ -638,6 +638,7 @@ class MediaModel extends Eloquent
'duration' => $request->duration??"0",
'access_key' => $request->access_key??"",
'secret_key' => $request->secret_key??"",
'status' => $request->status
];
LogModel::addlog(["原media信息为"=>json_encode($media),"更新为"=>json_encode($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