コード例 #1
0
ファイル: ReviewHandler.ashx.cs プロジェクト: uvbs/mmp
        /// <summary>
        /// 审核通过
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        private string Pass(HttpContext context)
        {
            string        ids    = context.Request["ids"];
            List <string> IdList = ids.Split(',').ToList();

            for (int i = 0; i < IdList.Count; i++)
            {
                if (string.IsNullOrWhiteSpace(IdList[i]))
                {
                    continue;
                }
                bllReview.UpdateByKey <ReviewInfo>("AutoId", IdList[i], "AuditStatus", "1");
            }
            BLLRedis.ClearProductList(bllReview.WebsiteOwner);
            resp.Status = 1;
            resp.Msg    = "审核通过";
            return(Common.JSONHelper.ObjectToJson(resp));
        }