Mrs4s / MiraiGo

qq协议的golang实现, 移植于mirai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] 单向好友的未知性别有时会超过 int32 范围

MingxuanGame opened this issue · comments

描述

在单向好友的 uint32_sex 中,规定为 int32,但有时未知性别返回的值超过 int32 允许的最大值(例如 4294967295),导致 UnmarshalTypeError

相关 Issue:Mrs4s/go-cqhttp#1273

代码片段

Sex int32 `json:"uint32_sex"`

修复方法

修改为 int64 即可