/// <summary>
        /// 改变商品评价的状态
        /// </summary>
        public ActionResult ChangeProductReviewState(int reviewId = -1, int state = -1)
        {
            bool result = AdminProductReviews.ChangeProductReviewState(reviewId, state);

            if (result)
            {
                AddMallAdminLog("修改商品评价状态", "修改商品评价状态,商品评价ID和状态为:" + reviewId + "_" + state);
                return(Content("1"));
            }
            else
            {
                return(Content("0"));
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 改变商品评价的状态
        /// </summary>
        public ActionResult ChangeProductReviewState(int reviewId = -1, int state = -1)
        {
            ProductReviewInfo productReviewInfo = AdminProductReviews.AdminGetProductReviewById(reviewId);

            if (productReviewInfo == null || productReviewInfo.StoreId != WorkContext.StoreId)
            {
                return(Content("0"));
            }

            bool result = AdminProductReviews.ChangeProductReviewState(reviewId, state);

            if (result)
            {
                AddStoreAdminLog("修改商品评价状态", "修改商品评价状态,商品评价ID和状态为:" + reviewId + "_" + state);
                return(Content("1"));
            }
            else
            {
                return(Content("0"));
            }
        }