Hidistro.UI.Web/Pay/wx_Feedback.cs

(完整代码) 2KB

namespace Hidistro.UI.Web.Pay
{
    using Hidistro.ControlPanel.Store;
    using Hidistro.Core;
    using Hidistro.Core.Entities;
    using Hidistro.Entities.VShop;
    using Hishop.Weixin.Pay;
    using Hishop.Weixin.Pay.Notify;
    using System;
    using System.Web.UI;

    public class wx_Feedback : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            base.Response.Write("success");
            SiteSettings masterSettings = SettingsManager.GetMasterSettings(false);
            FeedBackNotify feedBackNotify = new NotifyClient(masterSettings.WeixinAppId, masterSettings.WeixinAppSecret, masterSettings.WeixinPartnerID, masterSettings.WeixinPartnerKey, masterSettings.WeixinPaySignKey).GetFeedBackNotify(base.Request.InputStream);
            if (feedBackNotify != null)
            {
                string msgType = feedBackNotify.MsgType;
                if (msgType != null)
                {
                    if (!(msgType == "request"))
                    {
                        if (msgType == "confirm")
                        {
                            feedBackNotify.MsgType = "已完成";
                        }
                    }
                    else
                    {
                        feedBackNotify.MsgType = "未处理";
                    }
                }
                if (VShopHelper.GetFeedBack(feedBackNotify.FeedBackId) != null)
                {
                    VShopHelper.UpdateFeedBackMsgType(feedBackNotify.FeedBackId, feedBackNotify.MsgType);
                }
                else
                {
                    FeedBackInfo info = new FeedBackInfo {
                        AppId = feedBackNotify.AppId,
                        ExtInfo = feedBackNotify.ExtInfo,
                        FeedBackId = feedBackNotify.FeedBackId,
                        MsgType = feedBackNotify.MsgType,
                        OpenId = feedBackNotify.OpenId,
                        Reason = feedBackNotify.Reason,
                        Solution = feedBackNotify.Solution,
                        TransId = feedBackNotify.TransId
                    };
                    VShopHelper.SaveFeedBack(info);
                }
            }
        }
    }
}

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

AI 解读 AI

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

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