Giter Site home page Giter Site logo

mjsoul's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mjsoul's Issues

emailLogin, error code 6

url: wss://gateway-v2.maj-soul.com:6443
请求(已隐去邮箱):

{
"Success":true,
"Type":0,
"MethodName":".lq.Lobby.emailLogin",
"Json":null,
"Data":{"currency_platforms":[2],
             "email":"**@**",
             "password":"e1e8c05ab091d1ccfd5fbae7453eba55b5f192ce78becae530b512dcf13cb129",
             "reconnect":false,
             "device":{"device_type":"pc","browser":"safari"},
             "random_key":"7576bf0a-2222-47ba-b6de-f5354c4c35f7",
             "client_version":"v0.9.205.w",
             "gen_access_token":false}
}

响应:

{
"Success":true,
"Type":1,
"MethodName":".lq.Lobby.emailLogin",
"Json":{"error":{"code":6},"account_id":4},
"Data":null
}

请问如何找到error code的释义?找了一圈没找到相关文档。

请问这个api现在还可以使用吗

替换了liqi.json 用qq邮箱和登录密码替换了test.js中的account和password
尝试直接用node ./test.js启动项目 但是一直未成功登录
mjsoul中url是'wss://gateway-v2.maj-soul.com/gateway'

testjs

matchGame后收不到.lq.NotifyMatchGameStart

请求:

{
"Success":true,
"Type":0,
"MethodName":".lq.Lobby.matchGame",
"Json":null,
"Data":{"match_mode":2,
    "client_version_string":"web-0.9.205"}
}

响应:

{
"Success":true,"Type":1,
"MethodName":".lq.Lobby.matchGame",
"Json":{"error":{}},
"Data":null
}

之后一直在等待。我用浏览器查看匹配到对局时,应该会收到.lq.NotifyMatchGameStart。

API未详细到可以使用

首先感谢作者制作这个API,对我们进行的项目帮助很大
但是API仍然有一部分的缺陷,例如创建一个友人房具体需要调用哪些API,如果作者可以给一些实例的话,会有很大的帮助

官方liqi.json文件有部分错误

最近发现由于不知名原因,使用官方提供的liqi.json文件无法解析部分协议,经过观察发现接收到的内容和liqi.json文件描述不符。
目前发现的无法解析的协议:.lq.Lobby.fetchFriendList,.lq.Lobby.fetchShopInfo,.lq.Lobby.fetchCharacterInfo;解决方法未知
解析有误的协议:.lq.Lobby.ResMonthTicketInfo,.lq.Lobby.fetchServerSettings,研究后发现官方提供的liqi.json文件中field id有误。

例: "ResMonthTicketInfo": {
"fields": {
"error": {
"type": "Error",
"id": 2
},
"month_ticket_info": {
"rule": "repeated",
"type": "MonthTicketInfo",
"id": 1
}
}
},

正确的协议应为: "ResMonthTicketInfo": {
"fields": {
"error": {
"type": "Error",
"id": 1
},
"month_ticket_info": {
"rule": "repeated",
"type": "MonthTicketInfo",
"id": 2
}
}
},

国际服无法登陆

运行

const MJSoul = require("mjsoul")
const mjsoul = new MJSoul({
    url: "wss://mjusgs.mahjongsoul.com:9663/", //雀魂ws连接地址,可以修改为日服或者国际服的地址
    timeout: 5000, //异步超时时间,超时则会reject
    wsOption: "" //websocket参数(使用https://github.com/websockets/ws),可以用来配置代理等
})
let data = await mjsoul.sendAsync('oauth2Login', {
        type: 10,
        access_token: ,
        lient_version_string: "web-0.9.205"
    })

一直报 9999 的错误

您好,是否可以指导一下

data = {
'last_index': 0
}
await mgr.send('fetchContestGameRecords', print, data)
在fetchContestGameRecords中 req为 ReqFetchCustomizedContestGameRecordList

ReqFetchCustomizedContestGameRecordList里有一个last_index值

我无论last_index赋值多少 亦或者None,永远返回error code=2501

我真是头大死了 请问您是否能指导一下

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.