Showing
1 changed file
with
3 additions
and
16 deletions
| ... | @@ -41,15 +41,18 @@ PublicFcmSDK.getInstance().init(this, "https://cid.gzyouai.com", "default", "cda | ... | @@ -41,15 +41,18 @@ PublicFcmSDK.getInstance().init(this, "https://cid.gzyouai.com", "default", "cda |
| 41 | @Override | 41 | @Override |
| 42 | public void userInfo(int totalGameTime, int totalPayMoney, String birthday) { | 42 | public void userInfo(int totalGameTime, int totalPayMoney, String birthday) { |
| 43 | PoolSdkLog.logError("游戏收到回调:totalGameTime:" + totalGameTime + ",totalPayMoney:" + totalPayMoney+",birthday:"+birthday); | 43 | PoolSdkLog.logError("游戏收到回调:totalGameTime:" + totalGameTime + ",totalPayMoney:" + totalPayMoney+",birthday:"+birthday); |
| 44 | + //请求返回信息 birthday:生日 totalGameTime:在线时长(分钟 没有设置过默认不传) totalPayMoney:累计充值(元 没有设置过默认不传) | ||
| 44 | } | 45 | } |
| 45 | 46 | ||
| 46 | @Override | 47 | @Override |
| 47 | public void error(String errMsg) { | 48 | public void error(String errMsg) { |
| 49 | + //上报接口报错信息回调 | ||
| 48 | PoolSdkLog.logError("游戏收到回调:errMsg:" +errMsg); | 50 | PoolSdkLog.logError("游戏收到回调:errMsg:" +errMsg); |
| 49 | } | 51 | } |
| 50 | 52 | ||
| 51 | @Override | 53 | @Override |
| 52 | public void result(Object data) { | 54 | public void result(Object data) { |
| 55 | + //上报用户行为和实名认证结果回调 | ||
| 53 | PoolSdkLog.logError("游戏收到回调:result:" +data); | 56 | PoolSdkLog.logError("游戏收到回调:result:" +data); |
| 54 | } | 57 | } |
| 55 | }); | 58 | }); |
| ... | @@ -120,20 +123,4 @@ PublicFcmSDK.getInstance().setUserCertification(Activity context,String openID,S | ... | @@ -120,20 +123,4 @@ PublicFcmSDK.getInstance().setUserCertification(Activity context,String openID,S |
| 120 | 123 | ||
| 121 | ```java | 124 | ```java |
| 122 | PublicFcmSDK.getInstance().setUserCertification(this,"550_123","尚福乐", "211322198509260317"); | 125 | PublicFcmSDK.getInstance().setUserCertification(this,"550_123","尚福乐", "211322198509260317"); |
| 123 | -``` | ||
| 124 | - | ||
| 125 | -### 6. PublicFcmSDK.PublicFcmSDKListener 回调 | ||
| 126 | - | ||
| 127 | -| userInfo |获取用户信息接口 getUserInfo 的回调| | ||
| 128 | -| ------------ | ------------ | | ||
| 129 | -| error | 上报接口报错信息回调 | | ||
| 130 | -| result | 上报用户行为和实名认证结果回调 | | ||
| 131 | - | ||
| 132 | - | ||
| 133 | -```java | ||
| 134 | -public abstract interface PublicFcmSDKListener { | ||
| 135 | - public abstract void userInfo(int totalGameTime, int totalPayMoney, String birthday); | ||
| 136 | - public abstract void error(String errMsg); | ||
| 137 | - public abstract void result(Object data); | ||
| 138 | -} | ||
| 139 | ``` | 126 | ``` |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment