迅雷水晶矿场接口[不定期更新]

 admin   2016-02-05 21:38   5804 人阅读  0 条评论


setting_about_logo.png


1、登陆接口

登陆接口可以有2个选择,一个是矿场APP的接口,一个我们通用的网页web接口,两者差别在于:矿场APP接口会话状态是唯一的,不支持多终端在线;网页web接口支持多终端同时在线,这里先以APP接口为例,web接口大同小异!

提交地址:https://login.mobile.reg2t.sandai.net/

提交方式:POST

提交数据:JSON结构

{"cmdID":1,"isCompressed":0,"rsaKey":{"n":"D6F1CFBF4D9F70710527E1B1911635460B1FF9AB7C202294D04A6F135A906E90E2398123C234340A3CEA0E5EFDCB4BCF7C613A5A52B96F59871D8AB9D240ABD4481CCFD758EC3F2FDD54A1D4D56BFFD5C4A95810A8CA25E87FDC752EFA047DF4710C7D67CA025A2DC3EA59B09A9F2E3A41D4A7EFBB31C738B35FFAAA5C6F4E6F","e":"010001"},"businessType":61,"passWord":"RSA加密后的密码","loginType":0,"sdkVersion":177522,"appName":"ANDROID-com.xunlei.redcrystalandroid","platformVersion":1,"devicesign":"div100.77a5cd97068d2024316c98049afda2b6be0952f4c7342598d2638c47ce31ad81","sessionID":"","protocolVersion":105,"userName":"用户名","extensionList":"","sequenceNo":1000001,"peerID":"ABCDEFGHIJK","clientVersion":"1.0.0"}

提交cookie:

返回值:JSON结构

{"payId":0,"account":55411,"sessionID":"会话ID","expireDate":"----","errorCode":0,"vasType":0,"cmdID":2,"protocolVersion":105,"userNewNo":466326375,"payName":"----","jumpKey":"BD59ADB0E7F723BDBE1D3988CA60E5E8D2A8291799F67E39FDC749CCE2D23C508F74D2C3B9604D6CBB4245147E8E16D8E21DDADAAC3CB1B31146250E9DED46E389C62B1E8A81E47A1517F98F80C769C3BC9B6E0C56B060C9C527F7FC85FE5C72940CFBEF3A4A7A31A6F58484250D798E","platformVersion":1,"userID":UserID,"isCompressed":0,"isVip":0,"isYear":0,"userName":"登陆的用户名","sequenceNo":1000001,"nickName":"账号昵称"}


通过返回值合成一个该账号的Cookie,以备后续使用,提取返回值红字部分组合新的cookie,格式如下:

sessionid=会话ID;userid=UserID;origin=1;nickname=账号昵称

nickname需要进行URL编码,其实也可以省略

RSA加密这里就不多说了,自己找资料吧!(其实我也不是很懂。。。)


2、查询矿主信息

提交地址:http://1-api-red.xunlei.com/index.php

提交方式:POST

提交数据:r=usr/privilege&v=1&ver=2.3.0

提交cookie:

返回值:JSON结构

{"r":0,"rd":"ok","mid":矿主ID,"phone":"绑定的手机号","level":0,"chk_phone":1}


3、查询综合收益信息

提交地址:http://1-api-red.xunlei.com/index.php

提交方式:POST

提交数据:r=mine/info&v=4

提交cookie:

返回值:JSON结构

{"r":0,"rd":"","td_not_in_a":待收取水晶数量,"td_box_pdc":宝箱收益,"b_unget":过期的宝箱个数,"b_open":打开的宝箱个数,"td_cm_pdc":0,"cm_num":0,"dev_m":{"pdc":今日矿机水晶产量,"info":"","url":"","upgrade":固件是否有更新},"steal_get":进攻收益,"s_novice":永久秘银数,"s":秘银存量,"w_s":1,"td_s":今日秘银收益,"td_c":今日矿场总收益,"w_zqb":工作中赚钱宝数量,"upgrade":false}


暂时先写这么多吧!有空再继续写!2016.02.05

本文地址:http://www.pecmd.com/?id=27
版权声明:本文为原创文章,版权归 admin 所有,欢迎分享本文,转载请保留出处!

发表评论


表情

还没有留言,还不快点抢沙发?