feat 废弃jwt 、 学识分

This commit is contained in:
2026-02-06 22:31:31 +08:00
parent 36621140f8
commit 96f0919c05
8 changed files with 84 additions and 39 deletions

View File

@@ -71,6 +71,16 @@ func (s *Server) CategoryAnswerQuestion(ctx context.Context, req *grpc_pb.Catego
QuestionAnswer: question.Answer,
Answer: req.Answer,
})
// 类目答题正确给5分错误不得分
if req.Answer == question.Answer {
kafka.NewProducer().Produce(ctx, &timer.TopicAddPoint{
MessageSn: utils.SnowflakeInstance().Generate().Int64(),
Source: timer.AddPointSourceCategory,
USN: req.USN,
Point: 5,
})
}
}
return &grpc_pb.CategoryAnswerQuestionResp{
Answer: question.Answer,