Esempio n. 1
0
    public static string recognition(Image image_0)
    {
        MemoryStream stream = new MemoryStream();

        image_0.Save(stream, ImageFormat.Jpeg);
        byte[] buffer = new byte[stream.Length];
        stream.Position = 0L;
        stream.Read(buffer, 0, buffer.Length);
        stream.Flush();
        StringBuilder builder = new StringBuilder(50);

        if (IntPtr.Size == 4)
        {
            DamaUser2.uu_recognizeByCodeTypeAndBytes(buffer, buffer.Length, 0x3ec, builder);
        }
        else
        {
            DamaUser.uu_recognizeByCodeTypeAndBytes(buffer, buffer.Length, 0x3ec, builder);
        }
        stream.Close();
        stream.Dispose();
        return(builder.ToString().Split(new char[] { '_' })[1]);
    }
Esempio n. 2
0
    public string method_0(string string_1, string string_2)
    {
        int num3;

        if (IntPtr.Size == 4)
        {
            DamaUser2.uu_setSoftInfo(0x18629, "06ada1d03089445faa6aba961823b1e1");
            if (DamaUser2.uu_login(string_1, string_2) > 0)
            {
                this.bool_0 = true;
                num3        = DamaUser2.uu_getScore(string_1, string_2);
                return("登录成功!当前点数:[" + num3 + "]");
            }
            return("登录失败!");
        }
        DamaUser.uu_setSoftInfo(0x18629, "06ada1d03089445faa6aba961823b1e1");
        if (DamaUser.uu_login(string_1, string_2) > 0)
        {
            this.bool_0 = true;
            num3        = DamaUser.uu_getScore(string_1, string_2);
            return("登录成功!当前点数:[" + num3 + "]");
        }
        return("登录失败!");
    }