Easy.COMMON/OrderCommon.cs

(开头部分) 6KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Easy.COMMON
{
    public class OrderCommon
{
    // Methods
    public static string AddCart(string id1, int num)
    {
        Dictionary<string, int> cardic = GetShopCartDictionary();
        if (cardic.Count <= 0)
        {
            cardic.Add(id1, num);
        }
        else if (cardic.ContainsKey(id1))
        {
            Dictionary<string, int> CS0002;
            string CS0003;
            (CS0002 = cardic)[CS0003 = id1] = CS0002[CS0003] + 1;
        }
        else
        {
            cardic.Add(id1, num);
        }
        SaveShopCartCookie(cardic);
        return "1";
    }

    public static string AddCart3(string id1, int num, string color)
    {
        int k = -1;
        Dictionary<string, int> dic = GetShopCartDictionary();
        string[] arr = new string[dic.Keys.Count];
        dic.Keys.CopyTo(arr, 0);
        for (int j = 0; j < arr.Length; j++)
        {
            if (arr[j].IndexOf(id1) > -1)
            {
                k = j;
                break;
            }
        }
        if ((k > -1) && (arr[k] != (id1 + "B" + color)))
        {
            dic.Remove(arr[k]);
            SaveShopCartCookie(dic);
        }
        return AddCart(id1 + "B" + color, num);
    }

    public static string GetOrderDetailState(string state)
    {
        string ret = "";
        string CS0001 = state;
        if (CS0001 == null)
        {
            return ret;
后面还有 190 行代码,购买后查看完整代码

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

AI 解读 AI

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

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