takayama-lily / mjsoul Goto Github PK
View Code? Open in Web Editor NEWmajsoul client
License: MIT License
majsoul client
License: MIT License
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的释义?找了一圈没找到相关文档。
请求:
{
"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,如果作者可以给一些实例的话,会有很大的帮助
如题。我知道怎么拿liqi.json
,但是怎么找都找不到dhs.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
我真是头大死了 请问您是否能指导一下
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.