多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
匹配对战测试1.0 请求地址:ws://120.24.81.27:7272 第一步:匹配请求 | 参数 | 必要 |注释 | --- | --- |---| | type | 是 |gamespk(匹配)| |room_id|是|赛场id| |openid|是|用户唯一标识符| |client_name|用户昵称 {"type":"gamespk","client_name":"123","room_id":"1","openid":"123456789"} 成功后返回 {"type":"gamespk",//匹配成功 "room_sn":"201807037799",//房间号 "majordata"://随机的题库 [{"id":9,"title":"\u6d4b\u8bd5","cate_id":2,"A":"\u6d4b\u8bd5","B":"\u6d4b\u8bd5","C":"\u6d4b\u8bd5","D":"\u6d4b\u8bd5","right":"C","status":null,"user_major_id":1,"writer":"","create_time":1528881512,"update_time":null},{"id":12,"title":"\u6d4b\u8bd5","cate_id":2,"A":"\u6d4b\u8bd5","B":"\u6d4b\u8bd5","C":"\u6d4b\u8bd5","D":"\u6d4b\u8bd5","right":"A","status":null,"user_major_id":1,"writer":"","create_time":1528881512,"update_time":null},{"id":21,"title":"\u6d4b\u8bd5","cate_id":2,"A":"\u6d4b\u8bd5","B":"\u6d4b\u8bd5","C":"\u6d4b\u8bd5","D":"\u6d4b\u8bd5","right":"A","status":1,"user_major_id":1,"writer":"","create_time":1528881804,"update_time":null},{"id":25,"title":"\u6d4b\u8bd5","cate_id":1,"A":"\u6d4b\u8bd5","B":"\u6d4b\u8bd5","C":"\u6d4b\u8bd5","D":"\u6d4b\u8bd5","right":"C","status":1,"user_major_id":1,"writer":"","create_time":1528881836,"update_time":null},{"id":26,"title":"\u6d4b\u8bd5","cate_id":2,"A":"\u6d4b\u8bd5","B":"\u6d4b\u8bd5","C":"\u6d4b\u8bd5","D":"\u6d4b\u8bd5","right":"D","status":1,"user_major_id":1,"writer":"","create_time":1528881836, "update_time":null}]}