client_Hale
2018-09-05 862a13b78b82b425638aea5280d0b31a76c3bbe1
Fixed sdk逻辑修改
3个文件已修改
19 ■■■■ 已修改文件
ChannelDiff/822055139/libs/app-game_822055139-release.aar 补丁 | 查看 | 原始文档 | blame | 历史
Project/app/src/game_822055139/java/com/secondworld/univeralsdk/FreePlatformUtil.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Project/app/src/game_822055139/java/com/secondworld/univeralsdk/H2EngineSDK.java 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ChannelDiff/822055139/libs/app-game_822055139-release.aar
Binary files differ
Project/app/src/game_822055139/java/com/secondworld/univeralsdk/FreePlatformUtil.java
@@ -26,6 +26,7 @@
    private static FreePlatformUtil s_Instance;
    private boolean m_Init = false;
    public boolean payProcessing = false;
    public static FreePlatformUtil getInstace()
    {
@@ -121,14 +122,17 @@
                    case FreeCallbackCode.PAY_SUCCESS:
                        m_Message.put("code", CodeA2U.FreePlatformPayOk);
                        UniversalUtil.sendMessageToUnity(m_Message);
                        payProcessing = false;
                        break;
                    case FreeCallbackCode.PAY_FAIL:
                        m_Message.put("code", CodeA2U.FreePlatformPayFail);
                        UniversalUtil.sendMessageToUnity(m_Message);
                        payProcessing = false;
                        break;
                    case FreeCallbackCode.PAY_CANCEL:
                        m_Message.put("code", CodeA2U.FreePlatformPayCancel);
                        UniversalUtil.sendMessageToUnity(m_Message);
                        payProcessing = false;
                        break;
                }
            }
Project/app/src/game_822055139/java/com/secondworld/univeralsdk/H2EngineSDK.java
@@ -99,6 +99,7 @@
                                                      _json.getString("orderId"),
                                                      (float) _json.getDouble("mount"),
                                                      _json.getString("cpInfo"));
                    FreePlatformUtil.getInstace().payProcessing = true;
                    break;
                case CodeU2A.PayFinished:
                    Tracking.setPayment(_json.getString("orderID"),
@@ -116,6 +117,9 @@
                                           _json.getString("moneyType"),
                                           true,
                                           _money);
                    FreePlatformUtil.getInstace().payProcessing = false;
                    break;
                case CodeU2A.ClientPackage:
                    // 初始化热云
@@ -300,9 +304,6 @@
                // ------------------------------- 自由SDK -------------------------------
                FreePlatformUtil.getInstace().init(activity);
                // ------------------------------- 猫耳SDK -------------------------------
                FreePlatformUtil.getInstace().init(activity);
                // ------------------------------- 极光推送 -------------------------------
                JPushInterface.setDebugMode(true);
                JPushInterface.init(activity);
@@ -387,6 +388,14 @@
    {
        FreePlatform.getInstance().onResume();
        TeaAgent.onResume(activity);
        if(FreePlatformUtil.getInstace().payProcessing)
        {
            Map<String, Object> _msgStruct = new HashMap<>();
            _msgStruct.put("code", CodeA2U.FreePlatformPayCancel);
            UniversalUtil.sendMessageToUnity(_msgStruct);
            FreePlatformUtil.getInstace().payProcessing = false;
        }
    }
    public static void onStop(final Activity activity)