Google Play 服务 - 排行榜最高得分 21,474,836.47$
Google Play Services - Leaderboard max score 21,474,836.47$
我正在使用 Ionic 3 制作我的应用程序 QuickLife。
推到排行榜的其中一件事是用户赚了多少钱,即使我推了 5000 万美元到 Google 服务,出现的最大数字是 21,474,836.47 美元
googlePlaySubmitScore(data) {
let age = data.age;
// net Worth is money that is pushed, it is multiplied by 100 and Google will use that last two characters for decimal point
let netWorth = data.netWorth * 100;
let followers = data.numOfSocialFans;
this.googlePlayGamesServices.isSignedIn()
.then(() => {
this.googlePlayGamesServices.submitScore({
score: netWorth,
leaderboardId: ID
});
this.googlePlayGamesServices.submitScore({
score: age,
leaderboardId: ID
});
this.googlePlayGamesServices.submitScore({
score: followers,
leaderboardId: ID
});
});
}
这是有符号整数 (2^31 - 1) 的最大值。
https://dev.mysql.com/doc/refman/8.0/en/integer-types.html
我正在使用 Ionic 3 制作我的应用程序 QuickLife。
推到排行榜的其中一件事是用户赚了多少钱,即使我推了 5000 万美元到 Google 服务,出现的最大数字是 21,474,836.47 美元
googlePlaySubmitScore(data) {
let age = data.age;
// net Worth is money that is pushed, it is multiplied by 100 and Google will use that last two characters for decimal point
let netWorth = data.netWorth * 100;
let followers = data.numOfSocialFans;
this.googlePlayGamesServices.isSignedIn()
.then(() => {
this.googlePlayGamesServices.submitScore({
score: netWorth,
leaderboardId: ID
});
this.googlePlayGamesServices.submitScore({
score: age,
leaderboardId: ID
});
this.googlePlayGamesServices.submitScore({
score: followers,
leaderboardId: ID
});
});
}
这是有符号整数 (2^31 - 1) 的最大值。