Пример #1
0
        private int QueryMsgDeal()
        {
            QueryPay    query  = new QueryPay();
            TransResult result = SyncTransaction(query);

            if (result == TransResult.E_SUCC)
            {
                if (string.Compare(entity.cardinfo.cardType, "1") == 0)
                {
                    try
                    {
                        Log.Info("entity.Amount : " + entity.Amount);
#if DEBUG
                        entity.Amount = "1";
#endif
                        CommonData.Amount = double.Parse(entity.Amount.TrimStart('0'));
                    }
                    catch (Exception ex)
                    {
                        ShowMessageAndGotoMain("查询失败|返回金额格式出错");
                        return(-1);
                    }
                }
                return(0);
            }
            else
            {
                ShowMessageAndGotoMain("查询失败|");
            }

            return(-1);
        }
Пример #2
0
 public ServiceRequestResult QueryPay(QueryPay request, out QueryPayResult result)
 {
     return(ServiceRequest(EventNames.Pay_Query, request, out result));
 }