Skip to content

少前登录验证机制 #3

Description

@KasumigaokaUtaha

大佬你好,我这几天在研究这个项目与登录有关的函数代码(主要是这三个方法:protocol.User.Login, protocol.User.GetDigitalSkyNbUid, protocol.User.Index)。因为我自己尝试着按照首先密码登录帐号,请求DigitalSkyNbUid,最后请求Index获取各种仓库信息这个流程走的时候,发现最后在请求Index的时候总是会返回error:0。我也是用设置了cookieJar的http.Client发送的这三个请求,header除了cookie以外只设置了User-Agent和Content-Type,对于Index的请求的请求体格式就是和protocol.User.Index这个方法里设置的({time: time.Now().Unix()})一样。反复尝试了很多次,一直没有想明白到底是什么造成的请求Index总是返回error:0而不是玩家的仓库信息。尝试用的代码有点长,需要发出来吗?谢谢了

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions