/// <summary> /// 获取评论信息 /// </summary> /// <param name="context"></param> /// <returns></returns> private string GetReviewConFig(HttpContext context) { BLLJIMP.Model.ReviewConFig config = bllJuactivity.Get <BLLJIMP.Model.ReviewConFig>(" AutoId=1"); if (config != null) { resp.Status = 0; resp.ExObj = config; resp.Msg = "配置成功"; } else { resp.Status = -1; } return(Common.JSONHelper.ObjectToJson(resp)); }
/// <summary> /// 检查是否需要 /// </summary> /// <param name="context"></param> /// <returns></returns> private string IsCheck(HttpContext context) { string strWhere = context.Request["Wherestr"]; if (string.IsNullOrEmpty(strWhere)) { resp.Status = -1; resp.Msg = ""; } BLLJIMP.Model.ReviewConFig config = bllJuactivity.Get <BLLJIMP.Model.ReviewConFig>(" " + strWhere + "='1'"); if (config != null) { resp.Status = 0; resp.Msg = "成功"; } else { resp.Status = -1; resp.Msg = "失败"; } return(Common.JSONHelper.ObjectToJson(resp)); }