Mon Aug 19 14:00:17 CST 2019 Source Update...
This commit is contained in:
@@ -1991,3 +1991,17 @@ function DoNewSession()
|
||||
window.crypto.getRandomValues(arr);
|
||||
glSession = GetHexFromArr(arr);
|
||||
};
|
||||
|
||||
function GetStrFromDiagrArr(Arr)
|
||||
{
|
||||
var Arr2 = [];
|
||||
for(var i = 0; i < Arr.length; i++)
|
||||
{
|
||||
var obj = {};
|
||||
CopyObjKeys(obj, Arr[i]);
|
||||
if(obj.arr)
|
||||
delete obj.arr;
|
||||
Arr2.push(obj);
|
||||
}
|
||||
return JSON.stringify(Arr2);
|
||||
};
|
||||
|
||||
@@ -13,9 +13,9 @@ var MAX_SUM_CENT = 1e9;
|
||||
|
||||
function CHECKSUM(Coin)
|
||||
{
|
||||
if(typeof Coin.SumCOIN !== "number")
|
||||
if(!Coin.SumCOIN)
|
||||
Coin.SumCOIN = 0;
|
||||
if(typeof Coin.SumCENT !== "number")
|
||||
if(!Coin.SumCENT)
|
||||
Coin.SumCENT = 0;
|
||||
};
|
||||
|
||||
@@ -117,5 +117,6 @@ if(typeof global === "object")
|
||||
global.ISZERO = ISZERO;
|
||||
global.FLOAT_FROM_COIN = FLOAT_FROM_COIN;
|
||||
global.COIN_FROM_FLOAT = COIN_FROM_FLOAT;
|
||||
global.COIN_FROM_FLOAT2 = COIN_FROM_FLOAT2;
|
||||
global.COIN_FROM_STRING = COIN_FROM_STRING;
|
||||
}
|
||||
|
||||
@@ -123,7 +123,8 @@ function SetNetConstJSON()
|
||||
{
|
||||
var Str = JSON.stringify(Data, "", 2);
|
||||
document.getElementById("idDevService").value = Str;
|
||||
var Data = {MaxTrasactionLimit:CONFIG_DATA.MAX_TRANSACTION_LIMIT};
|
||||
var Data = {MaxTrasactionLimit:CONFIG_DATA.MAX_TRANSACTION_LIMIT, ProtocolVer:CONFIG_DATA.PROTOCOL_VER, ProtocolMode:CONFIG_DATA.PROTOCOL_MODE,
|
||||
MaxLevel:CONFIG_DATA.MAX_LEVEL, };
|
||||
var Str = JSON.stringify(Data, "", 2);
|
||||
document.getElementById("idDevService").value = Str;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user