Hidistro.UI.Web/Admin/OutPayReturn/AliPaynotify_url.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace Hidistro.UI.Web.Admin.OutPayReturn
{
    using Hidistro.ControlPanel.OutPay.App;
    using Hidistro.ControlPanel.Store;
    using Hidistro.Core;
    using Hidistro.Entities.Orders;
    using Hidistro.SaleSystem.Vshop;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Text;
    using System.Web.UI;

    public class AliPaynotify_url : Page
    {
        public SortedDictionary<string, string> GetRequestPost()
        {
            int index = 0;
            SortedDictionary<string, string> dictionary = new SortedDictionary<string, string>();
            string[] allKeys = base.Request.Form.AllKeys;
            for (index = 0; index < allKeys.Length; index++)
            {
                dictionary.Add(allKeys[index], base.Request.Form[allKeys[index]]);
            }
            return dictionary;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            SortedDictionary<string, string> requestPost = this.GetRequestPost();
            if (requestPost.Count > 0)
            {
                Notify notify = new Notify();
                if (notify.Verify(requestPost, base.Request.Form["notify_id"], base.Request.Form["sign"]))
                {
                    string str = base.Request.Form["success_details"];
                    try
                    {
                        if (!string.IsNullOrEmpty(str))
                        {
                            foreach (string str2 in str.Split(new char[] { '|' }))
                            {
                                string[] strArray2 = str2.Split(new char[] { '^' });
                                if (strArray2.Length >= 8)
                                {
                                   
                                    Maticsoft.DBUtility.DbHelperSQL.ExecuteSql("update Hishop_OrderReturns set IsPay=1,PayResult='" + "支付宝付款:流水号" + strArray2[6] + ",支付时间:" + strArray2[7] + "' where ReturnsId='" + strArray2[0] + "'");

                                    //BalanceDrawRequestInfo balanceDrawRequestById = DistributorsBrower.GetBalanceDrawRequestById(strArray2[0]);
                                    //if ((balanceDrawRequestById != null) && (balanceDrawRequestById.IsCheck != "2"))
                                    //{
                                    //    VShopHelper.UpdateBalanceDrawRequest(int.Parse(strArray2[0]), "支付宝付款:流水号" + strArray2[6] + ",支付时间:" + strArray2[7]);
                                    //    VShopHelper.UpdateBalanceDistributors(balanceDrawRequestById.UserId, decimal.Parse(strArray2[3]));
                                    //}
                                }
                            }
                        }
                        string str3 = base.Request.Form["fail_details"];
                        if (!string.IsNullOrEmpty(str3))
                        {
后面还有 55 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。