/// <summary> /// 取消活动 /// </summary> /// <param name="id"></param> /// <returns></returns> public JsonResult CancelActive(long id, string mremark) { Result result = new Result { success = false, msg = "操作失败", status = -1 }; mremark = ClearHtmlString(mremark); if (string.IsNullOrWhiteSpace(mremark)) { result = new Result { success = false, msg = "请填写下架理由", status = -1 }; return(Json(result)); } FightGroupApplication.CancelActive(id, mremark, CurrentManager.Id); result = new Result { success = true, msg = "操作成功", status = 1 }; return(Json(result)); }
/// <summary> /// 取消活动 /// </summary> /// <param name="id"></param> /// <returns></returns> public JsonResult CancelActive(long id, string mremark) { Result result = new Result { success = false, msg = "操作失败", status = -1 }; mremark = ClearHtmlString(mremark); if (string.IsNullOrWhiteSpace(mremark)) { result = new Result { success = false, msg = "请填写下架理由", status = -1 }; return(Json(result)); } FightGroupApplication.CancelActive(id, mremark, CurrentManager.Id); var info = FightGroupApplication.GetFightGroupActiveInfo(id); ProductManagerApplication.SaveCaculateMinPrice(info.ProductId, info.ShopId); result = new Result { success = true, msg = "操作成功", status = 1 }; return(Json(result)); }