CommonBussiness/admin/selOrderStatus.aspx.cs

(开头部分) 8KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using DAL;
using System.Text;
using System.Net;
using System.IO;
using System.Data;
using System.Security.Cryptography;

namespace CommonBussiness.admin
{
    public partial class selOrderStatus : System.Web.UI.Page
    {
        int orderId = CRequest.GetInt("orderId", 0);
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                OrderInfo order = OrderService.GetModel(orderId);
                if (order != null)
                {
                    string url = "https://api.mch.weixin.qq.com/pay/orderquery";
                    string appid = "wx8a02513b182f68af";
                    string mch_id = "1372977102";
                    string device_info = "WEB";
                    string nonce_str = "ibuaiVcKdpRxkhJA";// Rand.GetMixPwd(20);
                    string body = "test";
                    UserInfo user = Session["user"] as UserInfo;
                    if (user != null)
                    {
                        body = user.relName + "在挖矿订单";
                    }


                    //string partnerKey = "ipEfo8DYseX4ZgBaerAveGNegZijUuya";
                    //string stringA = "appid=" + appid + "&body=" + body + "&device_info=" + device_info + "&mch_id=" + mch_id + "&nonce_str=" + nonce_str;

                    //string strSginTemp = string.Format("{0}&key={1}", stringA, partnerKey);//这个是在线生成的32为密钥,//8a4356d650495c51ba8c33ec5bebec38这个是公众号密钥
                    //string sign = encrypt.EncryptMd5(strSginTemp);//.ToUpper();

                    StringBuilder sb = new StringBuilder();
                    sb.Append("{");
                    sb.Append("\"goods_detail\":[");
                    #region 主题
                    DataSet ds = OrderDetailService.GetList("orderId = " + orderId);
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                        {
                            Product item = ProductService.GetModel(Convert.ToInt32(ds.Tables[0].Rows[i]["productId"]));
                            if (i == ds.Tables[0].Rows.Count - 1)
                            {
                                if (item != null)
                                {
                                    sb.Append("{");
后面还有 124 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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