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