From 116962fb5cd45d2e9835711cc73c417916844b8d Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 7 Sep 2023 14:48:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=88=9D=E5=A7=8B=E6=AE=B5?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/capturesheep/modelCaptureSheep.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/capturesheep/modelCaptureSheep.go b/modules/capturesheep/modelCaptureSheep.go index 2e3df5381..22d845116 100644 --- a/modules/capturesheep/modelCaptureSheep.go +++ b/modules/capturesheep/modelCaptureSheep.go @@ -45,6 +45,9 @@ func (this *ModelCaptureSheep) queryInfo(uid string) (results *pb.DBCaptureSheep results = &pb.DBCaptureSheep{ Uid: uid, } + if results.Dan, err = this.computedan(results.Integral); err != nil { + return + } err = this.Add(uid, results) } return