Commit 39bc38ce by 杨昕

回收站处理

parent e1ed25ee
Pipeline #11384 passed with stages
in 44 seconds
......@@ -19,14 +19,14 @@ class RecycleModel extends Eloquent
public static function addRecycle($obj_id,$obj_type="media"){
$recycle = RecycleModel::where([
"obj_type" => $obj_type,
"obj_id" => $obj_id,
])->first();
if (!empty($recycle)){
throw new \Exception("回收站已存在");
}
// $recycle = RecycleModel::where([
// "obj_type" => $obj_type,
// "obj_id" => $obj_id,
// ])->first();
// if (!empty($recycle)){
// throw new \Exception("回收站已存在");
// }
$obj_model = 'App\\Model\\'.ucfirst($obj_type).'Model';
$model = new $obj_model();
......
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