public ResponseBody <int> PostWXUser(WXUserInfoEntity wxUserInfoEntity) { var id = _IUserBLL.EditWeixinUser(wxUserInfoEntity); return(new ResponseBody <int> { Result = id, Code = "", Message = "" }); }
public int gettest() { var wxUser = UserHandler.GetUserInfoByopenID("oZ0NuwPJqqT77z68HmkVXjc1g5ns"); var weixinModel = new WXUserInfoEntity { from = "wx", headimgurl = wxUser.headimgurl, status = 1, nickname = wxUser.nickname, openid = "oZ0NuwPJqqT77z68HmkVXjc1g5ns", pwd = "", recommendopenid = "", subscribetime = DateTime.Now }; return(_IUserBLL.EditWeixinUser(weixinModel)); }