Пример #1
0
        void onEnterClick()
        {
            if (curServerData == null)
            {
                return;
            }

            if (curServerData.srv_status == 5)
            {
                //服务器维护中
                msg.show(true, ContMgr.getOutGameCont("debug3"));
            }
            else
            {
                bt.interactable = false;
                btn_look.SetActive(false);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.LOGIN_SERVER_SID, curServerData.sid);
                LGPlatInfo.inst.sendLogin(curServerData.login_url);
                //if (debug.instance != null)
                //    debug.instance.showMsg(ContMgr.getOutGameCont("debug1"));

                if (Application.platform == RuntimePlatform.Android)
                {
                    AndroidPlotformSDK.ANDROID_HIDE_STATUSBAR();
                }
            }
        }
Пример #2
0
        public void Call_Cmd(string cmd, string info = null, string jstr = null, bool waiting = true)
        {
            debug.Log(string.Concat(new object[]
            {
                "Call_Cmd::",
                Application.platform,
                " ",
                Globle.QSMY_Platform_Index
            }));
            bool flag = Application.platform != RuntimePlatform.Android;

            if (!flag)
            {
                if (waiting)
                {
                    InterfaceMgr.getInstance().open(InterfaceMgr.SDK_LOADING, null, false);
                }
                AndroidPlotformSDK.m_bInCalling = true;
                bool flag2 = info != null && jstr != null;
                if (flag2)
                {
                    AndroidPlotformSDK.ANDROID_PLOTFORM_SDK_INFO_CALL(info, jstr);
                }
                AndroidPlotformSDK.ANDROID_PLOTFORM_SDK_CALL(cmd);
                debug.Log("ANDROID_PLOTFORM_SDK_CALL::");
            }
        }
Пример #3
0
        public void Add_moreCmdInfo(string info, string jstr)
        {
            bool flag = Application.platform != RuntimePlatform.Android;

            if (!flag)
            {
                bool flag2 = Globle.QSMY_Platform_Index != ENUM_QSMY_PLATFORM.QSPF_LINKSDK;
                if (!flag2)
                {
                    AndroidPlotformSDK.ANDROID_PLOTFORM_SDK_INFO_CALL(info, jstr);
                }
            }
        }
Пример #4
0
        public void Cmd_CallBack(Variant v)
        {
            debug.Log("!!!!!!!!!!!!!!!!!!!!!!!!!!!Cmd_CallBack!!!!!" + v.dump());
            int  num  = v["result"];
            bool flag = num != 85;

            if (flag)
            {
                InterfaceMgr.getInstance().close(InterfaceMgr.SDK_LOADING);
            }
            AndroidPlotformSDK.m_bInCalling = false;
            bool flag2 = num == 11 || num == 12 || num == 13;

            if (flag2)
            {
                bool flag3 = AndroidPlotformSDK.m_bLogined && num == 11;
                if (flag3)
                {
                    AndroidPlotformSDK.m_nResetAppCount = 1;
                }
                else
                {
                    AndroidPlotformSDK.LOGIN_ACTION(v);
                }
            }
            else
            {
                bool flag4 = num == 42;
                if (flag4)
                {
                    GameSdkMgr.record_quit();
                    AnyPlotformSDK.Call_Cmd("close", null, null, true);
                }
                else
                {
                    bool flag5 = num == 21;
                    if (flag5)
                    {
                        GameSdkMgr.record_quit();
                        AndroidPlotformSDK.m_nResetAppCount = 1;
                    }
                    else
                    {
                        bool flag6 = num == 81;
                        if (flag6)
                        {
                            Variant variant = v["data"];
                            GameSdkMgr.m_sdk.voiceRecordHanlde("begin", "", 0);
                        }
                        else
                        {
                            bool flag7 = num == 82;
                            if (flag7)
                            {
                                Variant variant2 = v["data"];
                                bool    flag8    = variant2.ContainsKey("error");
                                if (flag8)
                                {
                                    GameSdkMgr.m_sdk.voiceRecordHanlde("error", variant2["error"], 0);
                                }
                            }
                            else
                            {
                                bool flag9 = num == 83;
                                if (flag9)
                                {
                                    Variant variant3 = v["data"];
                                    GameSdkMgr.m_sdk.voiceRecordHanlde("end", variant3["url"], variant3["seconds"]);
                                }
                                else
                                {
                                    bool flag10 = num == 84;
                                    if (flag10)
                                    {
                                        Variant variant4 = v["data"];
                                        bool    flag11   = variant4.ContainsKey("error");
                                        if (flag11)
                                        {
                                            GameSdkMgr.m_sdk.voiceRecordHanlde("error", variant4["error"], 0);
                                        }
                                    }
                                    else
                                    {
                                        bool flag12 = num == 91;
                                        if (flag12)
                                        {
                                            GameSdkMgr.m_sdk.voicePlayedHanlde("error");
                                        }
                                        else
                                        {
                                            bool flag13 = num == 92;
                                            if (flag13)
                                            {
                                                GameSdkMgr.m_sdk.voicePlayedHanlde("played");
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }