/// <summary> /// 改变商品热销状态 /// </summary> public ActionResult ChangeProductIsHot(int[] pidList, int state = 0) { bool result = AdminProducts.ChangeProductIsHot(pidList, state); if (result) { AddMallAdminLog("修改商品热销状态", "修改商品热销状态,商品ID和状态为:" + CommonHelper.IntArrayToString(pidList) + "_" + state); return(Content("1")); } else { return(Content("0")); } }
/// <summary> /// 改变商品热销状态 /// </summary> public ActionResult ChangeProductIsHot(int[] pidList, int state = 0) { if (!AdminProducts.IsStoreProductByPid(WorkContext.StoreId, pidList)) { return(Content("0")); } bool result = AdminProducts.ChangeProductIsHot(pidList, state); if (result) { AddStoreAdminLog("修改商品热销状态", "修改商品热销状态,商品ID和状态为:" + pidList + "_" + state); return(Content("1")); } else { return(Content("0")); } }