File tree Expand file tree Collapse file tree 14 files changed +111
-111
lines changed Expand file tree Collapse file tree 14 files changed +111
-111
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function initScriptBalance(currencyValue, cb){
41
41
42
42
function getBalance ( userinfo ) {
43
43
balance = ( userinfo . Balances [ currencyValue ] . Balance / 100000000 ) . toFixed ( 8 )
44
- return balance ;
44
+ return parseFloat ( balance ) ;
45
45
}
46
46
47
47
function outError ( ret ) {
@@ -67,13 +67,13 @@ function getWinStatus(ret){
67
67
function getProfit ( userinfo , currencyValue ) {
68
68
profit = ( ( userinfo . CurrentBalances [ currencyValue ] . TotalPayIn + userinfo . CurrentBalances [ currencyValue ] . TotalPayOut ) / 100000000 ) . toFixed ( 8 ) ;
69
69
//console.log('actprofit:'+actProfit);
70
- return profit ;
70
+ return parseFloat ( profit ) ;
71
71
}
72
72
73
73
function getCurrProfit ( ret ) {
74
74
currentprofit = ( ( ret . PayOut - ret . PayIn ) / 100000000 ) . toFixed ( 8 )
75
75
//console.log('currprofit:'+currProfit);
76
- return currentprofit ;
76
+ return parseFloat ( currentprofit ) ;
77
77
}
78
78
79
79
function getCurrentBetId ( ret ) {
Original file line number Diff line number Diff line change @@ -60,19 +60,19 @@ function initScriptBalance(currencyValue, cb){
60
60
61
61
function getBalance ( userinfo ) {
62
62
balance = userinfo . info . balance
63
- return balance ;
63
+ return parseFloat ( balance ) ;
64
64
}
65
65
66
66
function getProfit ( userinfo ) {
67
67
profit = userinfo . currentInfo . profit ;
68
68
//console.log('actprofit:'+actProfit);
69
- return profit ;
69
+ return parseFloat ( profit ) ;
70
70
}
71
71
72
72
function getCurrProfit ( ret ) {
73
73
currentprofit = ret . betInfo . profit
74
74
//console.log('currprofit:'+currProfit);
75
- return currentprofit ;
75
+ return parseFloat ( currentprofit ) ;
76
76
}
77
77
78
78
function getCurrentBetId ( ret ) {
Original file line number Diff line number Diff line change @@ -54,19 +54,19 @@ function initScriptBalance(currencyValue, cb){
54
54
55
55
function getBalance ( userinfo ) {
56
56
balance = userinfo . info . balance
57
- return balance ;
57
+ return parseFloat ( balance ) ;
58
58
}
59
59
60
60
function getProfit ( userinfo ) {
61
61
profit = userinfo . currentInfo . profit ;
62
62
//console.log('actprofit:'+actProfit);
63
- return profit ;
63
+ return parseFloat ( profit ) ;
64
64
}
65
65
66
66
function getCurrProfit ( ret ) {
67
67
let currentprofit = ret . betInfo . profit
68
68
//console.log('currprofit:'+currProfit);
69
- return currentprofit ;
69
+ return parseFloat ( currentprofit ) ;
70
70
}
71
71
72
72
function getCurrentBetId ( ret ) {
Original file line number Diff line number Diff line change @@ -57,19 +57,19 @@ function initScriptBalance(currencyValue, cb){
57
57
58
58
function getBalance ( userinfo ) {
59
59
balance = userinfo . info . balance
60
- return balance ;
60
+ return parseFloat ( balance ) ;
61
61
}
62
62
63
63
function getProfit ( userinfo ) {
64
64
profit = userinfo . currentInfo . profit ;
65
65
//console.log('actprofit:'+actProfit);
66
- return profit ;
66
+ return parseFloat ( profit ) ;
67
67
}
68
68
69
69
function getCurrProfit ( ret ) {
70
70
currentprofit = ret . betInfo . profit
71
71
//console.log('currprofit:'+currProfit);
72
- return currentprofit ;
72
+ return parseFloat ( currentprofit ) ;
73
73
}
74
74
75
75
function getCurrentBetId ( ret ) {
Original file line number Diff line number Diff line change @@ -50,19 +50,19 @@ function initScriptBalance(currencyValue, cb){
50
50
51
51
function getBalance ( userinfo ) {
52
52
balance = userinfo . info . balance
53
- return balance ;
53
+ return parseFloat ( balance ) ;
54
54
}
55
55
56
56
function getProfit ( userinfo ) {
57
57
profit = userinfo . currentInfo . profit ;
58
58
//console.log('actprofit:'+actProfit);
59
- return profit ;
59
+ return parseFloat ( profit ) ;
60
60
}
61
61
62
62
function getCurrProfit ( ret ) {
63
63
currentprofit = ret . betInfo . profit
64
64
//console.log('currprofit:'+currProfit);
65
- return currentprofit ;
65
+ return parseFloat ( currentprofit ) ;
66
66
}
67
67
68
68
function getCurrentBetId ( ret ) {
Original file line number Diff line number Diff line change @@ -44,19 +44,19 @@ function initScriptBalance(currencyValue, cb){
44
44
45
45
function getBalance ( userinfo ) {
46
46
balance = userinfo . info . balance
47
- return balance ;
47
+ return parseFloat ( balance ) ;
48
48
}
49
49
50
50
function getProfit ( userinfo ) {
51
51
profit = userinfo . currentInfo . profit ;
52
52
//console.log('actprofit:'+actProfit);
53
- return profit ;
53
+ return parseFloat ( profit ) ;
54
54
}
55
55
56
56
function getCurrProfit ( ret ) {
57
57
currentprofit = ret . betInfo . profit
58
58
//console.log('currprofit:'+currProfit);
59
- return currentprofit ;
59
+ return parseFloat ( currentprofit ) ;
60
60
}
61
61
62
62
function getCurrentBetId ( ret ) {
Original file line number Diff line number Diff line change @@ -53,19 +53,19 @@ function initScriptBalance(currencyValue, cb){
53
53
54
54
function getBalance ( userinfo ) {
55
55
balance = userinfo . info . balance
56
- return balance ;
56
+ return parseFloat ( balance ) ;
57
57
}
58
58
59
59
function getProfit ( userinfo ) {
60
60
profit = userinfo . currentInfo . profit ;
61
61
//console.log('actprofit:'+actProfit);
62
- return profit ;
62
+ return parseFloat ( profit ) ;
63
63
}
64
64
65
65
function getCurrProfit ( ret ) {
66
66
currentprofit = ret . betInfo . profit
67
67
//console.log('currprofit:'+currProfit);
68
- return currentprofit ;
68
+ return parseFloat ( currentprofit ) ;
69
69
}
70
70
71
71
function getCurrentBetId ( ret ) {
Original file line number Diff line number Diff line change @@ -47,19 +47,19 @@ function initScriptBalance(currencyValue, cb){
47
47
48
48
function getBalance ( userinfo ) {
49
49
balance = userinfo . info . balance
50
- return balance ;
50
+ return parseFloat ( balance ) ;
51
51
}
52
52
53
53
function getProfit ( userinfo ) {
54
54
profit = userinfo . currentInfo . profit ;
55
55
//console.log('actprofit:'+actProfit);
56
- return profit ;
56
+ return parseFloat ( profit ) ;
57
57
}
58
58
59
59
function getCurrProfit ( ret ) {
60
60
currentprofit = ret . betInfo . profit
61
61
//console.log('currprofit:'+currProfit);
62
- return currentprofit ;
62
+ return parseFloat ( currentprofit ) ;
63
63
}
64
64
65
65
function getCurrentBetId ( ret ) {
Original file line number Diff line number Diff line change @@ -57,19 +57,19 @@ function initScriptBalance(currencyValue, cb){
57
57
58
58
function getBalance ( userinfo ) {
59
59
balance = userinfo . info . balance
60
- return balance ;
60
+ return parseFloat ( balance ) ;
61
61
}
62
62
63
63
function getProfit ( userinfo ) {
64
64
profit = userinfo . currentInfo . profit ;
65
65
//console.log('actprofit:'+actProfit);
66
- return profit ;
66
+ return parseFloat ( profit ) ;
67
67
}
68
68
69
69
function getCurrProfit ( ret ) {
70
70
currentprofit = ret . betInfo . profit
71
71
//console.log('currprofit:'+currProfit);
72
- return currentprofit ;
72
+ return parseFloat ( currentprofit ) ;
73
73
}
74
74
75
75
function getCurrentBetId ( ret ) {
Original file line number Diff line number Diff line change @@ -47,19 +47,19 @@ function initScriptBalance(currencyValue, cb){
47
47
48
48
function getBalance ( userinfo ) {
49
49
balance = userinfo . info . balance
50
- return balance ;
50
+ return parseFloat ( balance ) ;
51
51
}
52
52
53
53
function getProfit ( userinfo ) {
54
54
profit = userinfo . currentInfo . profit ;
55
55
//console.log('actprofit:'+actProfit);
56
- return profit ;
56
+ return parseFloat ( profit ) ;
57
57
}
58
58
59
59
function getCurrProfit ( ret ) {
60
60
currentprofit = ret . betInfo . profit
61
61
//console.log('currprofit:'+currProfit);
62
- return currentprofit ;
62
+ return parseFloat ( currentprofit ) ;
63
63
}
64
64
65
65
function getCurrentBetId ( ret ) {
You can’t perform that action at this time.
0 commit comments