| | |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <script src="js/jquery.1.12.4.js"></script> |
| | | <script> |
| | | var token = "dba75438-71f2-4a67-91ef-8919cd9b16cc"; |
| | | var token = "bc381c1e-83cb-4956-a1e4-a624b08225f1"; |
| | | |
| | | // Ajax |
| | | function ajax(url, type, data, dataType, contentType, fn) { |
| | |
| | | |
| | | // 测试切图 |
| | | function convertXYZ() { |
| | | var data = { token: token, ids: [2919, 2920], id: 1, min: 8, max: 18, depcode: "000305", dircode: "0102", userId: 1, name: "DOM_0.2m" }; |
| | | var data = { token: token, ids: [1217], id: 1, min: 8, max: 18, depcode: "000305", dircode: "0102", userId: 1, name: "DOM_0.2m" }; |
| | | ajax("Convert/ToTiles", "POST", JSON.stringify(data), null, null, function (rs) { |
| | | alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | | console.log(rs); |
| | | }); |
| | | } |
| | | |
| | | // 测试Rvt |
| | | // 测试Rvt * |
| | | function convert1() { |
| | | var data = { token: token, ids: [1521], depcode: "000305", dircode: "0102", userId: 1 }; |
| | | ajax("Convert/ToTileset", "POST", JSON.stringify(data), null, null, function (rs) { |
| | |
| | | }); |
| | | } |
| | | |
| | | // 测试Fbx |
| | | // 测试Fbx * |
| | | function convert2() { |
| | | var data = { token: token, ids: [1522], depcode: "000305", dircode: "0102", userId: 1 }; |
| | | ajax("Convert/ToTileset", "POST", JSON.stringify(data), null, null, function (rs) { |
| | |
| | | |
| | | // 测试Ifc |
| | | function convert3() { |
| | | var data = { token: token, ids: [6894], depcode: "000305", dircode: "0A040001010004", userId: 1 }; |
| | | var data = { token: token, ids: [7615], depcode: "000305", dircode: "0A040001010004", userId: 1 }; |
| | | ajax("Convert/ToTileset", "POST", JSON.stringify(data), null, null, function (rs) { |
| | | alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | | console.log(rs); |