feat: alpine 0.0.1 version complate
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
@@ -305,7 +305,7 @@ HTTPCaller.DappStaticCall = function(Params, response) {
|
||||
glBlock0 = global.SERVER.ReadBlockHeaderDB(0);
|
||||
var RetValue;
|
||||
try {
|
||||
RetValue = RunSmartMethod(glBlock0, Account.Value.Smart, Account, 0, 0, undefined, Params.MethodName, Params.Params, 1);
|
||||
RetValue = global.RunSmartMethod(glBlock0, Account.Value.Smart, Account, 0, 0, undefined, Params.MethodName, Params.Params, 1);
|
||||
}
|
||||
catch (e) {
|
||||
return { result: 0, RetValue: "" + e };
|
||||
@@ -651,7 +651,7 @@ HTTPCaller.SendECode = function(Param) {
|
||||
}
|
||||
return { result: 1, text: "Sent to " + arr.length + " nodes" };
|
||||
}
|
||||
var Node = FindNodeByAddr(Param.Addr, 1);
|
||||
var Node = global.FindNodeByAddr(Param.Addr, 1);
|
||||
if (Node === undefined)
|
||||
return { result: 0, text: "Node not found" };
|
||||
if (Node === false)
|
||||
@@ -1574,19 +1574,19 @@ if (global.ELECTRON) {
|
||||
});
|
||||
}
|
||||
exports.SendData = OnGetData;
|
||||
|
||||
// function RunConsole(StrRun) {
|
||||
// var Str = fs.readFileSync("./EXPERIMENTAL/!run-console.js", { encoding: "utf8" });
|
||||
// if (StrRun)
|
||||
// Str += "\n" + StrRun;
|
||||
// try {
|
||||
// var ret = eval(Str);
|
||||
// }
|
||||
// catch (e) {
|
||||
// ret = e.message + "\n" + e.stack;
|
||||
// }
|
||||
// return ret;
|
||||
// };
|
||||
//@ts-ignore
|
||||
function RunConsole(StrRun) {
|
||||
var Str = fs.readFileSync("./EXPERIMENTAL/_run-console.js", { encoding: "utf8" });
|
||||
if (StrRun)
|
||||
Str += "\n" + StrRun;
|
||||
try {
|
||||
var ret = eval(Str);
|
||||
}
|
||||
catch (e) {
|
||||
ret = e.message + "\n" + e.stack;
|
||||
}
|
||||
return ret;
|
||||
};
|
||||
var WebWalletUser = {};
|
||||
|
||||
function GetUserContext(Params) {
|
||||
|
||||
Reference in New Issue
Block a user