|
@@ -88,7 +88,7 @@ func GetMaterials(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
}
|
|
}
|
|
if _norm, ok := query["norm"]; ok {
|
|
if _norm, ok := query["norm"]; ok {
|
|
delete(query, "norm")
|
|
delete(query, "norm")
|
|
- query["name"] = bson.M{"$regex": _norm.(string)}
|
|
|
|
|
|
+ query["norm"] = bson.M{"$regex": _norm.(string)}
|
|
}
|
|
}
|
|
|
|
|
|
option := &repo.PageSearchOptions{
|
|
option := &repo.PageSearchOptions{
|