【问题标题】:Google Play Services - Leaderboard max score 21,474,836.47$Google Play 服务 - 排行榜最高得分 21,474,836.47$
【发布时间】: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


    【解决方案1】:

    这是有符号整数的最大值 (2^31 - 1)。 https://dev.mysql.com/doc/refman/8.0/en/integer-types.html

    【讨论】:

      猜你喜欢
      • 2019-02-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-05
      • 2023-04-03
      • 1970-01-01
      • 2014-02-09
      • 1970-01-01
      相关资源
      最近更新 更多