public void Scan(WX_EventQueue info) { string eventKey = XmlUtility.GetSingleNodeInnerText(info.XmlContent, "/xml/EventKey"); WX_User modal = userBLL.GetByPK(info.OpenID); if (modal != null) { WX_User modal1 = new WX_User(); EntityUntility.CopyProperty(modal, modal1); modal1.UserId = GetUserIdByScene(eventKey); userBLL.Update(modal1); } else { var app = appBLL.GetByPK(info.AppId); if (app != null) { GetUserInfo(info.OpenID, app.AppId, app.AppSecret); } } }
public ActionResult DeleteApp(string id) { WX_AppManager bll = new WX_AppManager(); WX_App app = bll.GetByPK(id); WX_App app1 = new WX_App(); EntityUntility.CopyProperty(app, app1); app1.AppState = "无效"; var result = new ReturnResult() { ErrorMsg = "修改状态失败!", Result = new WX_AppManager().Update(app1) }; return(Json(result, JsonRequestBehavior.AllowGet)); }