/// <summary> /// 微信登录认证 /// </summary> /// <param name="value"></param> /// <returns></returns> // POST: api/WX_Account public JObject Login(JObject value) { JObject result = new JObject(); string phoneNumber = value["mobilePhone"].Value <string>(); string password = value["password"].Value <string>(); UserBLL userBll = new UserBLL(); if (userBll.Authentication(phoneNumber, password)) { result["status"] = 1; result["url"] = "/WeiXin/Home/Index?phoneNumber=" + phoneNumber + "&password="******"info"] = "用户名或者密码错误!"; return(result); }