修改回退
This commit is contained in:
parent
8857f08e95
commit
59c188a9a7
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user