Skip to content

Commit 940c318

Browse files
author
mydicebot
committed
remove log & fix #20
1 parent a4f2fc2 commit 940c318

File tree

14 files changed

+111
-111
lines changed

14 files changed

+111
-111
lines changed

src/public/js/999Dice/info.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function initScriptBalance(currencyValue, cb){
4141

4242
function getBalance(userinfo){
4343
balance = (userinfo.Balances[currencyValue].Balance/100000000).toFixed(8)
44-
return balance;
44+
return parseFloat(balance);
4545
}
4646

4747
function outError(ret){
@@ -67,13 +67,13 @@ function getWinStatus(ret){
6767
function getProfit(userinfo,currencyValue){
6868
profit = ((userinfo.CurrentBalances[currencyValue].TotalPayIn+userinfo.CurrentBalances[currencyValue].TotalPayOut)/100000000).toFixed(8);
6969
//console.log('actprofit:'+actProfit);
70-
return profit;
70+
return parseFloat(profit);
7171
}
7272

7373
function getCurrProfit(ret){
7474
currentprofit = ((ret.PayOut-ret.PayIn)/100000000).toFixed(8)
7575
//console.log('currprofit:'+currProfit);
76-
return currentprofit;
76+
return parseFloat(currentprofit);
7777
}
7878

7979
function getCurrentBetId(ret){

src/public/js/Bitsler/info.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,19 @@ function initScriptBalance(currencyValue, cb){
6060

6161
function getBalance(userinfo){
6262
balance = userinfo.info.balance
63-
return balance;
63+
return parseFloat(balance);
6464
}
6565

6666
function getProfit(userinfo){
6767
profit = userinfo.currentInfo.profit;
6868
//console.log('actprofit:'+actProfit);
69-
return profit;
69+
return parseFloat(profit);
7070
}
7171

7272
function getCurrProfit(ret){
7373
currentprofit = ret.betInfo.profit
7474
//console.log('currprofit:'+currProfit);
75-
return currentprofit;
75+
return parseFloat(currentprofit);
7676
}
7777

7878
function getCurrentBetId(ret){

src/public/js/Crypto-Games/info.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ function initScriptBalance(currencyValue, cb){
5454

5555
function getBalance(userinfo){
5656
balance = userinfo.info.balance
57-
return balance;
57+
return parseFloat(balance);
5858
}
5959

6060
function getProfit(userinfo){
6161
profit = userinfo.currentInfo.profit;
6262
//console.log('actprofit:'+actProfit);
63-
return profit;
63+
return parseFloat(profit);
6464
}
6565

6666
function getCurrProfit(ret){
6767
let currentprofit = ret.betInfo.profit
6868
//console.log('currprofit:'+currProfit);
69-
return currentprofit;
69+
return parseFloat(currentprofit);
7070
}
7171

7272
function getCurrentBetId(ret){

src/public/js/DuckDice/info.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@ function initScriptBalance(currencyValue, cb){
5757

5858
function getBalance(userinfo){
5959
balance = userinfo.info.balance
60-
return balance;
60+
return parseFloat(balance);
6161
}
6262

6363
function getProfit(userinfo){
6464
profit = userinfo.currentInfo.profit;
6565
//console.log('actprofit:'+actProfit);
66-
return profit;
66+
return parseFloat(profit);
6767
}
6868

6969
function getCurrProfit(ret){
7070
currentprofit = ret.betInfo.profit
7171
//console.log('currprofit:'+currProfit);
72-
return currentprofit;
72+
return parseFloat(currentprofit);
7373
}
7474

7575
function getCurrentBetId(ret){

src/public/js/EpicDice/info.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ function initScriptBalance(currencyValue, cb){
5050

5151
function getBalance(userinfo){
5252
balance = userinfo.info.balance
53-
return balance;
53+
return parseFloat(balance);
5454
}
5555

5656
function getProfit(userinfo){
5757
profit = userinfo.currentInfo.profit;
5858
//console.log('actprofit:'+actProfit);
59-
return profit;
59+
return parseFloat(profit);
6060
}
6161

6262
function getCurrProfit(ret){
6363
currentprofit = ret.betInfo.profit
6464
//console.log('currprofit:'+currProfit);
65-
return currentprofit;
65+
return parseFloat(currentprofit);
6666
}
6767

6868
function getCurrentBetId(ret){

src/public/js/FreeBitco/info.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ function initScriptBalance(currencyValue, cb){
4444

4545
function getBalance(userinfo){
4646
balance = userinfo.info.balance
47-
return balance;
47+
return parseFloat(balance);
4848
}
4949

5050
function getProfit(userinfo){
5151
profit = userinfo.currentInfo.profit;
5252
//console.log('actprofit:'+actProfit);
53-
return profit;
53+
return parseFloat(profit);
5454
}
5555

5656
function getCurrProfit(ret){
5757
currentprofit = ret.betInfo.profit
5858
//console.log('currprofit:'+currProfit);
59-
return currentprofit;
59+
return parseFloat(currentprofit);
6060
}
6161

6262
function getCurrentBetId(ret){

src/public/js/KryptoGames/info.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,19 @@ function initScriptBalance(currencyValue, cb){
5353

5454
function getBalance(userinfo){
5555
balance = userinfo.info.balance
56-
return balance;
56+
return parseFloat(balance);
5757
}
5858

5959
function getProfit(userinfo){
6060
profit = userinfo.currentInfo.profit;
6161
//console.log('actprofit:'+actProfit);
62-
return profit;
62+
return parseFloat(profit);
6363
}
6464

6565
function getCurrProfit(ret){
6666
currentprofit = ret.betInfo.profit
6767
//console.log('currprofit:'+currProfit);
68-
return currentprofit;
68+
return parseFloat(currentprofit);
6969
}
7070

7171
function getCurrentBetId(ret){

src/public/js/PrimeDice/info.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@ function initScriptBalance(currencyValue, cb){
4747

4848
function getBalance(userinfo){
4949
balance = userinfo.info.balance
50-
return balance;
50+
return parseFloat(balance);
5151
}
5252

5353
function getProfit(userinfo){
5454
profit = userinfo.currentInfo.profit;
5555
//console.log('actprofit:'+actProfit);
56-
return profit;
56+
return parseFloat(profit);
5757
}
5858

5959
function getCurrProfit(ret){
6060
currentprofit = ret.betInfo.profit
6161
//console.log('currprofit:'+currProfit);
62-
return currentprofit;
62+
return parseFloat(currentprofit);
6363
}
6464

6565
function getCurrentBetId(ret){

src/public/js/Simulator/info.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@ function initScriptBalance(currencyValue, cb){
5757

5858
function getBalance(userinfo){
5959
balance = userinfo.info.balance
60-
return balance;
60+
return parseFloat(balance);
6161
}
6262

6363
function getProfit(userinfo){
6464
profit = userinfo.currentInfo.profit;
6565
//console.log('actprofit:'+actProfit);
66-
return profit;
66+
return parseFloat(profit);
6767
}
6868

6969
function getCurrProfit(ret){
7070
currentprofit = ret.betInfo.profit
7171
//console.log('currprofit:'+currProfit);
72-
return currentprofit;
72+
return parseFloat(currentprofit);
7373
}
7474

7575
function getCurrentBetId(ret){

src/public/js/Stake/info.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@ function initScriptBalance(currencyValue, cb){
4747

4848
function getBalance(userinfo){
4949
balance = userinfo.info.balance
50-
return balance;
50+
return parseFloat(balance);
5151
}
5252

5353
function getProfit(userinfo){
5454
profit = userinfo.currentInfo.profit;
5555
//console.log('actprofit:'+actProfit);
56-
return profit;
56+
return parseFloat(profit);
5757
}
5858

5959
function getCurrProfit(ret){
6060
currentprofit = ret.betInfo.profit
6161
//console.log('currprofit:'+currProfit);
62-
return currentprofit;
62+
return parseFloat(currentprofit);
6363
}
6464

6565
function getCurrentBetId(ret){

0 commit comments

Comments
 (0)