예제 #1
0
 public JsonResult GetActivity(string userId, string entId, string articleId, string fabh = "")
 {
     try
     {
         if (string.IsNullOrEmpty(userId) || string.IsNullOrEmpty(entId))
         {
             return(Json(new { success = false, message = "用户未登录,请先登录" }));
         }
         GoodsInfoDal     dal  = new GoodsInfoDal();
         List <Promotion> list = new List <Promotion>();
         list = dal.GetActivity(userId, entId, articleId, fabh);
         return(Json(new { success = true, message = list }));
     }
     catch (Exception ex)
     {
         LogQueue.Write(LogType.Error, "Search/GetActivity", ex.Message.ToString());
         return(Json(new { success = false, message = "商品活动信息获取失败!" }));
     }
 }