module ShanxiGlobalRouter{ export function getAllTopology() { return executeContract("GlobalRouter","getAllTopology",arg).result; } export function getRouterInfo(arg) { if (!checkPermission(requester)) { YancloudUtil.exceptionReturn({ "msg":"no permission", "code":1 }); } var ret = executeContract("GlobalRouter", "getRouterInfo", arg); var obj = ret.result; if (obj.result=="success" || obj.result == undefined) { obj.result = undefined; obj.code = 0; } else { YancloudUtil.exceptionReturn({ "msg":obj.data, "code":1 }); } obj.data.status = "online"; obj.data.date-=1000*60*60*24*30*8; obj.data.name = "山西广域数联网"; return obj; } export function listLRS(arg) { if (!checkPermission(requester)) { YancloudUtil.exceptionReturn({ "msg":"no permission", "code":1 }); } var ret = executeContract("GlobalRouter", "listLRS", ""); var obj = ret.result; if (obj.result=="success" || obj.result == undefined) { obj.result = undefined; obj.code = 0; } else { YancloudUtil.exceptionReturn({ "msg":obj.data, "code":1 }); } for (var i = 0; i