|
@@ -196,7 +196,7 @@ func init() {
|
|
|
_id := c.PostForm("_id")
|
|
|
agency_name := c.PostForm("agency_name")
|
|
|
if bson.IsObjectIdHex(_id) {
|
|
|
- delisok := Mgo.Del(util.ElasticClientDB, bson.M{"_id": bson.ObjectIdHex(_id)})
|
|
|
+ delisok := Mgo.Del(util.ElasticClientAgencyDB, bson.M{"_id": bson.ObjectIdHex(_id)})
|
|
|
if !delisok {
|
|
|
c.JSON(200, gin.H{"rep": 500, "err": "删除mongo错误"})
|
|
|
return
|