コード例 #1
0
        public async void GetCardPayInfo()
        {
            try
            {
                using (RequestCardPayInfoModel req = new RequestCardPayInfoModel())
                {
                    using (ResponseCardPayInfoModel res = await WebApiLib.AsyncCall <ResponseCardPayInfoModel, RequestCardPayInfoModel>(req))
                    {
                        if (res.resultStrCode == "000")
                        {
                            cardActCode   = res.data.cardActCode;
                            actNo         = res.data.actNo;
                            bankNm        = res.data.bankNm;
                            cardReqPrc    = res.data.cardReqPrc;
                            cardReqOriPrc = res.data.cardReqPrc;

                            if (bOnline)
                            {
                                cardReqPrc = cardReqOriPrc + 1500;
                            }
                            else
                            {
                                cardReqPrc = cardReqOriPrc;
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                SysLog.Error("Message[{0}], StackTrace[{1}]", ex.Message, ex.StackTrace);
            }
        }
コード例 #2
0
        public async void GetCardPayInfo()
        {
            try
            {
                using (RequestCardPayInfoModel req = new RequestCardPayInfoModel())
                {
                    using (ResponseCardPayInfoModel res = await WebApiLib.AsyncCall <ResponseCardPayInfoModel, RequestCardPayInfoModel>(req))
                    {
                        if (res.resultStrCode == "000")
                        {
                            cardActCode   = res.data.cardActCode;
                            actNo         = res.data.actNo;
                            bankNm        = res.data.bankNm;
                            cardReqPrc    = res.data.cardReqPrc;
                            cardReqPrcOri = res.data.cardReqPrc;
                            deliveryFee   = res.data.dlvr;

                            deliveryAddr = Localization.Resource.RechargeDepositWithdraw_Card_2_1_9 + string.Format(Localization.Resource.RechargeDepositWithdraw_Card_2_1_15, deliveryFee.ToString("#,#"), SC);
                            CmdSendCard();
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                SysLog.Error("Message[{0}], StackTrace[{1}]", ex.Message, ex.StackTrace);
            }
        }