SDKHub的问题,希望大佬帮忙看看

2021-10-22 20:43:28.527 1626-3170/? D/jswrapper: JS: CCAnalytics ------------> Start Login
2021-10-22 20:43:29.570 1626-3170/? D/jswrapper: JS: Google play------------------> 5 user info is empty!

真机登录正常的,而且排行榜也能打开。但是登录返回登陆失败(手机上显示GooglePlay登陆成功了)。希望有大佬帮忙解个惑。

自顶一下,别沉了

现在问题是,我想看Google登录失败到底是什么原因引起的,sdk又是只读文件。所以这个User info is empty到底为啥引起的就不知道了。

if (GoogleSignIn.hasPermissions(this.googleSignInAccount, gso.getScopeArray())) {
Games.getPlayersClient(context, this.googleSignInAccount).getCurrentPlayer().addOnSuccessListener((player) -> {
this.curPlayer = player;
this.parseUserInfo();
if (this.userInfo != null) {
this.actionResult(2, “auto login success!”);
} else {
this.actionResult(5, “user info is empty!”);
}

        }).addOnFailureListener((e) -> {
            this.actionResult(5, e.getLocalizedMessage());
        });
    } else {
        this.actionResult(31, "not login!");
    }

private void parseUserInfo() {
if (this.curPlayer != null) {
try {
Hashtable<String, String> account = new Hashtable();
account.put(“userDisplayName”, this.curPlayer.getDisplayName());
account.put(“userName”, this.curPlayer.getName());
account.put(“userPlayerId”, this.curPlayer.getPlayerId());
account.put(“userTitle”, this.curPlayer.getTitle());
account.put(“userRetrievedTimestamp”, String.valueOf(this.curPlayer.getRetrievedTimestamp()));
account.put(“userBannerImageLandscapeUri”, this.curPlayer.getBannerImageLandscapeUrl());
account.put(“userBannerImagePortraitUri”, this.curPlayer.getBannerImagePortraitUrl());
account.put(“userIconImageUri”, this.curPlayer.getIconImageUrl());
account.put(“userHiResImageUri”, this.curPlayer.getHiResImageUrl());
account.put(“userCurrentPlayerInfo”, ((CurrentPlayerInfo)Objects.requireNonNull(this.curPlayer.getCurrentPlayerInfo())).toString());
account.put(“userRelationshipInfo”, ((PlayerRelationshipInfo)Objects.requireNonNull(this.curPlayer.getRelationshipInfo())).toString());
this.userInfo = account;
} catch (Exception var2) {
}

    }
}

从代码看好像是登录成功了,但为什么解的时候就为空了呢?

支付插件的一些问题
getPurchases
getSkuDetails
getBuyIntent

这些返回Bundle的接口方法怎么调用呢?是需要自己在Android层写接口吗?也没看到有在Java暴露的可用接口啊。

隔了一夜又有数据了。这种问题就很头疼。万一再没了可真的太恶心了