コード例 #1
0
        // GET: /Pay/
        /**充值或消费或付款**/
        //IOS侧微信支付回调
        //192.168.0.5:8787/Pay/Recharge
        public ActionResult Charge(string UserID, int?Amount, string PayOrderID, int?Type)
        {
            string response = Request.Params.ToString();

            LogerHelper.DefaultInfo("微信回调");
            LogerHelper.DefaultInfo(response);
            string rrr = Request.Form.ToString();

            LogerHelper.DefaultInfo("POST:" + rrr);
            if (paymentbll.chargePayment(UserID, Amount, PayOrderID, Type))
            {
                LogerHelper.debug("微信支付成功!");
            }
            return(Content("cccc"));

            //if (!String.IsNullOrWhiteSpace(UserID) && !String.IsNullOrWhiteSpace(UserID)
            //    &&!String.IsNullOrWhiteSpace(UserID) && !String.IsNullOrWhiteSpace(UserID))
            //{

            //}
            //return null;
        }