public JsonResult GoodsDetails(string entId, string userId, string articleId) { try { if (string.IsNullOrEmpty(entId)) { entId = BaseConfiguration.EntId; } if (string.IsNullOrEmpty(articleId)) { return(Json(new { success = false, message = "参数获取失败!" })); } ///商品信息 GoodsInfoDal dal = new GoodsInfoDal(); ///商品当月销量排行 List <GoodsStatistical> slist = dal.GetGoodsRanking(userId, entId, "GoodsSale", 10); ///商品当月点击量量排行 List <GoodsStatistical> clist = dal.GetGoodsRanking(userId, entId, "GoodsClick", 3); ///商品详情 List <GoodsList> list = dal.GetGoodDetail(userId, articleId, entId); return(Json(new { success = true, list, slist, clist })); } catch (Exception ex) { LogQueue.Write(LogType.Error, "Goods/GoodsDetails", ex.Message.ToString()); return(Json(new { success = false, message = "商品详情加载失败!" })); } }