Example #1
0
        public static VerificationAccount GetVerificationAccountEx(uint userid, string token, string roleName)
        {
            VerificationAccount FakeAccount         = GetFakeAccount();
            VerificationAccount verificationAccount = new VerificationAccount(roleName, NameGuidFromBytes(userid, roleName), FakeAccount.accessToken);

            Console.WriteLine("昵称:" + verificationAccount.username);
            Console.WriteLine("uuid:" + verificationAccount.uuid);
            Console.WriteLine("accessToken:" + verificationAccount.accessToken);
            return(CurrentAccount = verificationAccount);
            //verificationAccount.username + "|" + verificationAccount.uuid + "|" + verificationAccount.accessToken
        }
Example #2
0
        public string GetVerificationAccount(string entity_id, string token, string rolename)//333316 mvMwFpkOaKn186KA Hyun
        {
            VerificationAccount v = Others.GetVerificationAccountEx(uint.Parse(entity_id), token, rolename);

            return(v.username + "|" + v.uuid + "|" + v.accessToken);
        }