예제 #1
0
        public void TestModify()
        {
            Net965808Service ns = new Net965808Service();
            var res             = ns.Modify("xiangpeng", "123456", "1234567", "", "", false) ? "修改成功" : "修改失败";

            Console.WriteLine(res);
        }
예제 #2
0
        public void TestRegister()
        {
            Net965808Service ns = new Net965808Service();
            string           msg;
            var res = ns.Regist("xiangpeng", "1234567", out msg, false) ? "注册成功" : "注册失败";

            Console.WriteLine(res);
        }
예제 #3
0
        public void TestUserLogin()
        {
            Net965808Service ns = new Net965808Service();
            string           userid, msg;
            var user = "******";
            var res  = ns.Login(user, "Zxc123456", out userid, out msg, false) ? "登录成功" : "登录失败";

            Console.WriteLine("用户{0}{1},userId={2}", user, res, userid);
            user = "******";
            res  = ns.Login(user, "123456", out userid, out msg) ? "登录成功" : "登录失败";
            Console.WriteLine("用户{0}{1},userId={2}", user, res, userid);
        }