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

            _iLimitTimeBuyService.EndActive(id);
            var info = _iLimitTimeBuyService.GetFlashSaleInfo(id);

            ProductManagerApplication.SaveCaculateMinPrice(info.ProductId, info.ShopId);
            result.success = true;
            result.msg     = "操作成功";
            return(Json(result));
        }
Example #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));
        }