From 59b0671c2662c9e0166cee493bcddff4bfd84172 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Fri, 23 Dec 2022 10:00:51 +0800 Subject: [PATCH] update --- modules/hunting/model_hunting.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/hunting/model_hunting.go b/modules/hunting/model_hunting.go index b25d35e93..f610a87ed 100644 --- a/modules/hunting/model_hunting.go +++ b/modules/hunting/model_hunting.go @@ -3,7 +3,6 @@ package hunting import ( "go_dreamfactory/comm" "go_dreamfactory/lego/core" - "go_dreamfactory/lego/sys/mgo" "go_dreamfactory/modules" "go_dreamfactory/pb" @@ -34,7 +33,7 @@ func (this *modelHunting) modifyHuntingDataByObjId(uid string, data map[string]i // 获取列表信息 func (this *modelHunting) getHuntingList(uid string) (result *pb.DBHunting, err error) { result = &pb.DBHunting{} - if err = this.Get(uid, result); err != nil && mgo.MongodbNil != err { + if err = this.Get(uid, result); err != nil { return }