| | |
| | | KYPlatformUtil.getInstance().logout(); |
| | | break; |
| | | case CodeU2A.FreePlatformPay: |
| | | JSONObject _extraData = new JSONObject(); |
| | | // JSONObject _extraData = new JSONObject(); |
| | | // String productId, |
| | | // String productName, |
| | | // String money, |
| | |
| | | // String orderId, |
| | | // String extraData, |
| | | // String serverID |
| | | _extraData.put("appid", APP_ID); |
| | | _extraData.put("cpinfo", _json.getString("cpInfo")); |
| | | _extraData.put("cporderid", _json.getString("orderId")); |
| | | _extraData.put("productid", GAME_ID); |
| | | // _extraData.put("appid", APP_ID); |
| | | // _extraData.put("cpinfo", _json.getString("cpInfo")); |
| | | // _extraData.put("cporderid", _json.getString("orderId")); |
| | | // _extraData.put("productid", GAME_ID); |
| | | String _extraData = APP_ID + "|" + _json.getString("cpInfo") + "|" + _json.getString("orderId") + "|" + GAME_ID; |
| | | KYPlatformUtil.getInstance().pay(_json.getString("cpInfo"), |
| | | _json.getString("title"), |
| | | _json.getString("mount"), |
| | | _json.getString("roleID"), |
| | | _json.getString("roleName"), |
| | | _json.getString("orderId"), |
| | | _extraData.toString(), |
| | | _extraData, |
| | | _json.getString("sid")); |
| | | |
| | | KYPlatformUtil.getInstance().payProcessing = true; |
| | |
| | | _msgStruct.clear(); |
| | | _msgStruct.put("code", CodeA2U.SdkInitComplete); |
| | | _msgStruct.put("channelPlatform", "ky"); |
| | | _msgStruct.put("kyAppID", UniversalUtil.getMetaString(activity, |
| | | "XOPENSDK_APPKEY")); |
| | | _msgStruct.put("kyAppID", "323"); |
| | | UniversalUtil.sendMessageToUnity(_msgStruct); |
| | | |
| | | LogUtil.i(TAG, "初始化执行完毕"); |
| | | } |
| | | |
| | | }).start(); |