예제 #1
0
        public int SignData(IntPtr intptr_0, string string_0, string string_1, out string string_2)
        {
            string_2 = "";
            if (intptr_0 == IntPtr.Zero)
            {
                return(0x25);
            }
            int num = Crypt_Login(intptr_0, string_1);

            if (num != 0)
            {
                Class20.smethod_2(string.Format("签名时登录密码:{0}", string_1));
                return(num);
            }
            byte[]    bytes     = Encoding.GetEncoding("GBK").GetBytes(string_0);
            byte[]    buffer    = new byte[0x400];
            uint      num2      = 0x400;
            DATE_TIME date_time = new DATE_TIME();
            int       num3      = Crypt_SignData(intptr_0, bytes, (uint)bytes.Length, 6, ref date_time, 0, buffer, ref num2);

            if (num3 != 0)
            {
                Class20.smethod_1("=============================SignData:返回值=============================" + num3);
                return(num3);
            }
            string_2 = Convert.ToBase64String(buffer, 0, (int)num2);
            return(num3);
        }
예제 #2
0
    // Token: 0x060000FC RID: 252 RVA: 0x00006E4C File Offset: 0x0000504C
    public static void smethod_0(GStruct2 gstruct2_0)
    {
        switch (gstruct2_0.byte_1)
        {
        case 1:
            Class20.smethod_1();
            break;

        case 2:
            Class20.smethod_3(gstruct2_0.object_0);
            break;

        case 4:
            Class20.smethod_2(gstruct2_0.guid_0, gstruct2_0.object_0);
            break;

        case 6:
            Class20.smethod_4();
            break;

        case 7:
            Class20.smethod_5(gstruct2_0.object_0);
            break;
        }
    }
예제 #3
0
    // Token: 0x060001CC RID: 460 RVA: 0x0000EA1C File Offset: 0x0000CC1C
    public static List <Class21> smethod_1()
    {
        List <Class21> list = new List <Class21>();

        foreach (string string_ in Dirs.BrowsCookies)
        {
            List <Class21> list2 = Class20.smethod_2(string_);
            if (list2 != null)
            {
                list.AddRange(list2);
            }
        }
        return(list);
    }
예제 #4
0
        public static List <InvVolumeApp> GetVolumns()
        {
            List <InvVolumeApp> list = new List <InvVolumeApp>();

            try
            {
                CreateVolumnsXml();
                using (XmlTextReader reader = new XmlTextReader(pathVolumns))
                {
                    reader.WhitespaceHandling = WhitespaceHandling.None;
                    while (reader.Read())
                    {
                        if ((reader.NodeType == XmlNodeType.Element) && (reader.Name == "InvVolume"))
                        {
                            InvVolumeApp item = new InvVolumeApp {
                                InvType   = byte.Parse(reader.GetAttribute("InvType")),
                                InvLimit  = long.Parse(reader.GetAttribute("InvLimit")),
                                BuyDate   = DateTime.Parse(reader.GetAttribute("BuyDate")),
                                SaledDate = DateTime.Parse(reader.GetAttribute("SaledDate")),
                                TypeCode  = reader.GetAttribute("TypeCode"),
                                HeadCode  = uint.Parse(reader.GetAttribute("HeadCode")),
                                BuyNumber = int.Parse(reader.GetAttribute("BuyNumber")),
                                Number    = ushort.Parse(reader.GetAttribute("Number")),
                                Status    = reader.GetAttribute("Status").ToCharArray()[0]
                            };
                            list.Add(item);
                        }
                    }
                }
                return(list);
            }
            catch (FileNotFoundException exception)
            {
                Class20.smethod_2(exception.ToString());
                return(null);
            }
        }