修改回退

This commit is contained in:
Administrator 2026-06-15 14:09:21 +08:00
parent 8857f08e95
commit 59c188a9a7

View File

@ -77,7 +77,7 @@ func (s *BookService) GetProCode(req systemReq.GetCodeRequest) (string, error) {
input := req.BookName + req.Author + req.Publisher
hash := md5.Sum([]byte(input))
hexStr := hex.EncodeToString(hash[:])
code := hexStr[:19]
code := hexStr[:20]
return strings.ToUpper(code), nil
}