예제 #1
0
파일: PayUtil.cs 프로젝트: zyuhua/devfw
        /// <summary>
        /// 获取提示的地址
        /// </summary>
        /// <param name="ap">支付方式编号</param>
        /// <param name="at">接口类型,默认为1</param>
        /// <returns></returns>
        internal static string GetNotifyUrl(PayMethods ap, PayApiType at)
        {
            global::System.Web.HttpRequest req = global::System.Web.HttpContext.Current.Request;

            return(String.Format("http://{0}{1}/netpay/notify_{2}_{3}.html",
                                 req.Url.Host, req.Url.Port == 80 ? "" : ":" + req.Url.Port, ((int)ap).ToString(), ((int)at).ToString()));
        }
예제 #2
0
파일: PayUtil.cs 프로젝트: zyuhua/devfw
        /// <summary>
        /// 获取返回的地址
        /// </summary>
        /// <param name="ppid">支付方式编号</param>
        /// <param name="atid">接口类型,默认为1</param>
        /// <returns></returns>
        internal static string GetReturnUrl(PayMethods ap, PayApiType at)
        {
            global::System.Web.HttpRequest req = global::System.Web.HttpContext.Current.Request;


            return(String.Format("http://{0}{1}/netpay/return_{2}_{3}.html",
                                 req.Url.Host, req.Url.Port == 80 ? "" : ":" + req.Url.Port, ((int)ap).ToString(), ((int)at).ToString()));

            /*
             * return String.Format("http://{0}{1}/pay/return_{2}_{3}.html",
             * "www.lmgdto.com","", ((int)ap).ToString(), ((int)at).ToString());
             */
        }
예제 #3
0
 internal static void ParseChannelQueryString(global::System.Web.HttpRequest request, out string channelName, out string userName)
 {
     object[] args = new object[] {
         request,
         null,
         null
     };
     m_privateType.InvokeStatic("ParseChannelQueryString", new System.Type[] {
         typeof(global::System.Web.HttpRequest),
         typeof(string).MakeByRefType(),
         typeof(string).MakeByRefType()
     }, args);
     channelName = ((string)(args[1]));
     userName    = ((string)(args[2]));
 }
예제 #4
0
        public void ProcessRequest(global::System.Web.HttpContext context)
        {
            httpContext = context;
            request = context.Request;

            if (request.HttpMethod == "POST")
            {
                AjaxAction = request.Form["ajaxAction"] == null ? "" : request.Form["ajaxAction"].Trim().ToUpper();
                switch (AjaxAction)
                {
                    case "KBB_INV_USERJOIN":
                        DoUserJoin();
                        break;

                    case "KBB_INV_USERLOGIN":
                        DoUserLogin();
                        break;

                    case "KBB_INV_USERGETPWD":
                        DoUserGetPass();
                        break;

                    case "KBB_INV_USERGETNEWPWD":
                        DoUserGetNewPass();
                        break;

                    case "KBB_INV_USERSETPWD":
                        DoUserResetPwd();
                        break;

                    case "KBB_INV_SAVECONTACTINFO":
                        DoSaveContactInfo();
                        break;

                    case "KBB_INV_SENDINVITE":
                        DoSendInvite();
                        break;

                    case "KBB_INV_REQUIREPAYMENT":
                        DoRequirePayment();
                        break;

                    case "KBB_INV_CANCLEPAYMENTREQUIRE":
                        DokCanclePaymentRequire();
                        break;
                }
            }

            context.Response.Clear();
            context.Response.Buffer = true;
            context.Response.Write(Html.ToString());
            context.Response.Flush();
        }