Commit 8d0938fb by 杨昕

修改传递参数

parent b05fde41
Pipeline #9870 passed with stages
in 33 seconds
...@@ -122,7 +122,7 @@ class MediaModel extends Eloquent ...@@ -122,7 +122,7 @@ class MediaModel extends Eloquent
$media_info = explode("&",$request->media_name); $media_info = explode("&",$request->media_name);
$mediaCatg = MediaCategoryModel::where('name',$request->media_type)->first(); $mediaCatg = MediaCategoryModel::where('_id',$request->media_type)->first();
if (empty($mediaCatg)){ if (empty($mediaCatg)){
throw new \Exception("媒资类别不存在"); throw new \Exception("媒资类别不存在");
} }
......
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