This commit is contained in:
CaiHQ 2023-11-02 15:01:23 +08:00
parent 8797e0c309
commit 82dc43d174

View File

@ -60,7 +60,7 @@ module networking {
"msg":"no permission", "code":1
});
}
var ret = executeContract(Global.router, "updateLRS", arg);
var ret = executeContract(Global.router, "updateLRS", JSON.stringify(arg));
var obj = ret.result;
if (obj.result=="success" || obj.result == undefined) {
obj.result = undefined;
@ -83,7 +83,7 @@ module networking {
"msg":"no permission", "code":1
});
}
var ret = executeContract(Global.router, "createLRS", arg);
var ret = executeContract(Global.router, "createLRS", JSON.stringify(arg));
var obj = ret.result;
if (obj.result=="success" || obj.result == undefined) {
obj.result = undefined;
@ -106,7 +106,7 @@ module networking {
"msg":"no permission", "code":1
});
}
var ret = executeContract(Global.router, "deleteLRS", arg);
var ret = executeContract(Global.router, "deleteLRS", JSON.stringify(arg));
var obj = ret.result;
if (obj.result=="success" || obj.result == undefined) {
obj.result = undefined;