Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func DelSlice(slice []interface{}, index int) []interface{} {
//@param str string 需要加密的字符串
//@return string 加密后的字符串
func MySha1(str string) string {
return fmt.Sprintf("%x", sha1.New().Sum([]byte(str)))
return fmt.Sprintf("%x", sha1.Sum([]byte(str)))
}

//设置缓存
Expand Down