public JsonResult RedactCriticism(string userId, string entId, string orderNo, int id, string articleId, string content, decimal starLevel, int superiorId = 0, int replayId = 0) { try { if (string.IsNullOrEmpty(entId)) { entId = BaseConfiguration.EntId; } if (string.IsNullOrEmpty(articleId) && string.IsNullOrEmpty(orderNo)) { return(Json(new { success = false, message = "商品和订单编号不能为空" })); } else if (string.IsNullOrEmpty(userId)) { return(Json(new { success = false, message = "请先登录!" })); } ///商品信息 GoodsInfoDal dal = new GoodsInfoDal(); int flag = dal.RedactCriticism(userId, entId, orderNo, id, articleId, content, starLevel, superiorId, replayId, out string message); return(Json(new { success = flag == 1 ? true : false, message })); } catch (Exception ex) { LogQueue.Write(LogType.Error, "Goods/RedactCriticism", ex.Message.ToString()); return(Json(new { success = false, message = "商品评价编辑失败!" })); } }