get zone by mid

This commit is contained in:
lwl0608 2024-04-24 21:20:31 +08:00
parent 2a84d99b65
commit 4da4ca70d1
1 changed files with 1 additions and 1 deletions

View File

@ -3975,7 +3975,7 @@ func (m *Mongo) GetZoneByMid(ctx *gin.Context, mid int64) (*dbstruct.Zone, error
zone := &dbstruct.Zone{}
col := m.getColZone()
query := qmgo.M{
"id": mid,
"mid": mid,
"del_flag": 0,
}
err := col.Find(ctx, query).One(&zone)