From e6f22d2c463c2cf10bead0a3b30d54bb2e639924 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 3 Nov 2022 16:20:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/horoscope/modelhoroscope.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/horoscope/modelhoroscope.go b/modules/horoscope/modelhoroscope.go index a3ae07481..c58207f97 100644 --- a/modules/horoscope/modelhoroscope.go +++ b/modules/horoscope/modelhoroscope.go @@ -36,7 +36,7 @@ func (this *modelHoroscope) queryInfo(uId string) (result *pb.DBHoroscope, err e this.module.Errorln(err) return } - if err != mgo.MongodbNil { + if err == mgo.MongodbNil { err = nil } return