【发布时间】:2018-10-21 11:32:26
【问题描述】:
我正在使用 Ionic 3 来制作我的应用 QuickLife。
推送到排行榜的其中一件事是用户赚了多少钱,即使我向 Google 服务推送 5000 万美元,出现的最大数字是 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
});
});
}
【问题讨论】:
标签: ionic-framework ionic3 google-play-services leaderboard