1. 主页
  2. 文档
  3. Mega API Document
  4. API Interface
  5. Mega Game Order Query

Mega Game Order Query

Interface URL address 

open.mega.game.order.page     

Request Parameter

Loading table...

Response

Loading table...

items:

Loading table...

Request Example

public static void test() {
		
	String sn = "ld00";
	String random = String.valueOf(System.currentTimeMillis());
	String loginId = "1100571335";
	String secretCode = "oOGKmN8zAycJtz9cYJQXr8ddMYQ=";
	String digest = HashUtil.md5Hex(random+sn+loginId+secretCode);
	try {
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("sn", sn);
		params.put("loginId", loginId);
		params.put("random", random);
		params.put("digest", digest);
		params.put("startTime", "2022-11-09 00:00:00");
		params.put("endTime", "2022-11-09 23:59:59");
		params.put("pageIndex", 1);
		params.put("pageSize", 2);
		String json = buildParams(params, "open.mega.game.order.page");
		String result = OkHttpUtils.post("https://ae8855.feiyanma.com/mega-cloud/api/", json);
		System.out.println(result);
	} catch (Exception e) {
		e.printStackTrace();
	}
}

private static String buildParams(Map<String, Object> postData, String method) {
	
	Map<String, Object> rpcMap = new HashMap<>();
	rpcMap.put("jsonrpc", "2.0"); 
	rpcMap.put("method", method); 
	rpcMap.put("params", postData);
	rpcMap.put("id", SeqUUIDUtil.toSequenceUUID()); 
	String param = JsonUtil.toJson(rpcMap);
	return param;
}

Response Example

{
	"id": "o1ghdr6a38cIVvp6ZQQgq9nbuLJdWl.x",
	"result": {
		"pageIndex": 1,
		"pageSize": 2,
		"total": 21,
		"totalPage": 11,
		"startIndex": 0,
		"hasNextPage": true,
		"hasPreviousPage": false,
		"items": [
			{
				"sn": null,
				"id": 67,
				"gameId": 162,
				"gameName": null,
				"roundNo": 0,
				"tableId": "0",
				"classId": 3,
				"lineNum": 25,
				"beginBalance": 4986.6,
				"endBalance": 4985.6,
				"bet": 1,
				"win": 0,
				"logDataStr": null,
				"logDataType": 2,
				"createTime": "2022-11-09 17:19:15"
			},
			{
				"sn": null,
				"id": 66,
				"gameId": 162,
				"gameName": null,
				"roundNo": 0,
				"tableId": "0",
				"classId": 3,
				"lineNum": 25,
				"beginBalance": 4987.6,
				"endBalance": 4986.6,
				"bet": 1,
				"win": 0,
				"logDataStr": null,
				"logDataType": 2,
				"createTime": "2022-11-09 17:19:11"
			}
		]
	},
	"error": null,
	"jsonrpc": "2.0"
}

我们要如何帮助您?