public JsonResult AuditItem(long id)
        {
            Result result = new Result();

            try
            {
                _iLimitTimeBuyService.Pass(id);
                Cache.Remove(CacheKeyCollection.CACHE_LIMITPRODUCTS);
                result.success = true;
                result.msg     = "审核成功!";
            }
            catch (HimallException ex)
            {
                result.msg = ex.Message;
            }
            catch (Exception ex)
            {
                Log.Error("审核出错", ex);
                result.msg = "审核出错!";
            }
            return(Json(result));
        }
Beispiel #2
0
        public JsonResult AuditItem(long id)
        {
            Result result = new Result();

            try
            {
                _iLimitTimeBuyService.Pass(id);
                Cache.Remove(CacheKeyCollection.CACHE_LIMITPRODUCTS);
                var info = _iLimitTimeBuyService.GetFlashSaleInfo(id);
                ProductManagerApplication.SaveCaculateMinPrice(info.ProductId, info.ShopId);
                result.success = true;
                result.msg     = "审核成功!";
            }
            catch (MallException ex)
            {
                result.msg = ex.Message;
            }
            catch (Exception ex)
            {
                Log.Error("审核出错", ex);
                result.msg = "审核出错!";
            }
            return(Json(result));
        }