Commit 0b444b36 by 杨昕

模糊搜索

parent d1ea7c68
Pipeline #9975 passed with stages
in 32 seconds
......@@ -64,7 +64,7 @@ class MediaModel extends Eloquent
$aggregate[]['$match']['username'] = $request->username;
}
if (isset($request->desciption) && !empty($request->desciption)){
if (isset($request->description) && !empty($request->description)){
$aggregate[]['$match']['description'] = ['$regex' => $request->description ];
}
......
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