Example #1
0
        public string Login()
        {
            var task = Request.Content.ReadAsStringAsync();

            task.Wait();
            string para = task.Result;//获取传递的参数

            string token  = PublicModel.IsSueToken("wujun", "zhujiuchang", "zhujiuchang", "30", DateTime.Now.ToShortDateString(), "LearnParty");
            var    d      = PublicModel.DecodeToken(token);
            var    result = new { sucess = true };

            return(JsonConvert.SerializeObject(result));
        }