示例#1
0
    /// <summary>
    /// 接收消息后显示的微信号
    /// </summary>
    private void SendMessageCallBack()
    {
        string wxCustonmerService = "Shy";

        TransferData data = new TransferData();

        data.SetValue("wxCustonmerService", wxCustonmerService);

        UIViewUtil.Instance.LoadWindow("ApplySuccessdMessage").GetComponent <UIApplySuccessdMessageView>().SetUI(data);

        if (m_UIExchangeRecordWindow)
        {
            m_UIExchangeRecordWindow.SetExchangeRecord(data);
        }
    }
    /// <summary>
    /// 请求发送获得礼品玩家的相关信息回调
    /// </summary>
    /// <param name="args"></param>
    private void OnRequestSendInfoCallBack(NetWorkHttp.CallBackArgs args)
    {
        if (args.HasError)
        {
            ShowMessage("提示", "网络连接失败");
        }
        else
        {
            if (args.Value.code < 0)
            {
                ShowMessage("提示", args.Value.msg);
                return;
            }
            if (args.Value.data == null || args.Value.data.Count == 0)
            {
                return;
            }

            ExchangeRecordCallBackEntity exchangeRecordCallBackEntity = LitJson.JsonMapper.ToObject <ExchangeRecordCallBackEntity>(args.Value.data.ToJson());;

            string wxCustonmerService = exchangeRecordCallBackEntity.wx_kf;

            TransferData data = new TransferData();

            data.SetValue("wxCustonmerService", wxCustonmerService);

            data.SetValue("id", exchangeRecordCallBackEntity.id);

            if (m_UIExchangeRecordWindow)
            {
                m_UIExchangeRecordWindow.SetExchangeRecord(data);
            }
            UIViewUtil.Instance.LoadWindow("ApplySuccessdMessage").GetComponent <UIApplySuccessdMessageView>().SetUI(data);

            //RequestExchangeLotteryWheelRecordInfo(PrizeType.LotteryWheel);
            if (prizeType == PrizeType.LotteryWheel)
            {
                CallRequestExchangeLotteryWheelRecordInfo();
            }
            else
            {
                CallRequestExchangeTreasureRecordInfo();;
            }
        }
    }