Web/App_Code/OrderStateProcess.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
/// <summary>
///用户中心订单状态图
///通过有参数的构造函数(参数表示状态)
/// </summary>
public class OrderStateProcess
{
public string Processhtml = "";
public OrderStateProcess()
{
}
/// <summary>
/// 根据是否是实物订单类型,返回html
/// </summary>
/// <param name="state">订单状态</param>
/// <param name="isend">1表示是实物订单类型</param>
public OrderStateProcess(int state)
{
string temphtml = "";
//分别对应状态
int[] statearray = new int[3] { 1, 2, 7 };
//0表示已经完成,1表示未完成
int flag = 0;
foreach (int item in statearray)
{
if (item == state)
{
temphtml += state_node(WebUtility.TurnOrderState(item), flag);
temphtml += state_proce(WebUtility.TurnOrderState(item), flag);
flag = 1;
}
else
{
temphtml += state_node(WebUtility.TurnOrderState(item), flag);
temphtml += state_proce(WebUtility.TurnOrderState(item), flag);
}
}
if (state == 3)
{
temphtml += state_node(WebUtility.TurnOrderState(3), 0);
}
else
{
if (state >= 4 && state <= 6)
{
temphtml += state_node(WebUtility.TurnOrderState(5), 0);
}
else
{
temphtml += state_node(WebUtility.TurnOrderState(3), 1);
}
后面还有 55 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
