Skip to content

Commit

Permalink
修正qq号大小比较 (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
medicago087 committed Feb 2, 2023
1 parent 93625f9 commit fc99eb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/qqwife/favorSystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ func init() {
delInfo = append(delInfo, favor.Userinfo)
// 解析旧数据
userList := strings.Split(favor.Userinfo, "+")
if userList[0] > userList[1] {
maxQQ, _ := strconv.ParseInt(userList[0], 10, 64)
minQQ, _ := strconv.ParseInt(userList[1], 10, 64)
if maxQQ > minQQ {
favor.Userinfo = userList[0] + "+" + userList[1]
} else {
favor.Userinfo = userList[1] + "+" + userList[0]
Expand Down

0 comments on commit fc99eb3

Please sign in to comment.