public void DoPayByCode()
 {
     CommonDic.getInstance().setParameters("subject", "game");
     CommonDic.getInstance().setParameters("body", "gamePay");
     CommonDic.getInstance().setParameters("order_id", getRamdomTestOrderID());
     CommonDic.getInstance().setParameters("total", "0");
     CommonDic.getInstance().setParameters("goods_tag", "game");
     CommonDic.getInstance().setParameters("notify_url", "www.picovr.com");
     CommonDic.getInstance().setParameters("pay_code", GameObject.Find("CodeText").GetComponent <Text>().text);
     Debug.Log("商品码支付" + GameObject.Find("CodeText").GetComponent <Text>().text);
     StartLoading();
     GameObject.Find("CodeText").GetComponent <Text>().text = "";
     InputPanel.SetActive(false);
     PicoPaymentSDK.Pay(CommonDic.getInstance().PayOrderString());
 }
        void OnClick(GameObject btnObj)
        {
            switch (btnObj.name)
            {
            case "Login":
                StartLoading();
                LoginSDK.Login();
                break;

            case "PayOne":
                CommonDic.getInstance().setParameters("subject", "game");
                CommonDic.getInstance().setParameters("body", "gamePay");
                CommonDic.getInstance().setParameters("order_id", getRamdomTestOrderID());
                CommonDic.getInstance().setParameters("total", "1");
                CommonDic.getInstance().setParameters("goods_tag", "game");
                CommonDic.getInstance().setParameters("notify_url", "www.picovr.com");
                CommonDic.getInstance().setParameters("pay_code", "");

                StartLoading();
                PicoPaymentSDK.Pay(CommonDic.getInstance().PayOrderString());

                break;

            case "PayCode":
                InputPanel.SetActive(true);
                break;

            case "QueryOrder":
                StartLoading();
                PicoPaymentSDK.QueryOrder(currentOrderID);
                break;

            case "GetUserAPI":
                StartLoading();
                LoginSDK.GetUserAPI();
                break;
            }
        }