public ActionResult SaveShareSetting(Model.DistributionShareSetting model) { if (!string.IsNullOrEmpty(model.ProShareTitle) && model.ProShareTitle.Length > 200) { return(Json(new Result() { success = false, msg = "商品分享标题超过长度" })); } if (!string.IsNullOrEmpty(model.ShopShareTitle) && model.ShopShareTitle.Length > 200) { return(Json(new Result() { success = false, msg = "店铺标题分享超过长度" })); } if (!string.IsNullOrEmpty(model.DisShareTitle) && model.DisShareTitle.Length > 200) { return(Json(new Result() { success = false, msg = "分销市场分享超过长度" })); } if (!string.IsNullOrEmpty(model.RecruitShareTitle) && model.RecruitShareTitle.Length > 200) { return(Json(new Result() { success = false, msg = "招募分享超过长度" })); } if (!string.IsNullOrEmpty(model.ShopShareDesc) && model.ShopShareDesc.Length > 200) { return(Json(new Result() { success = false, msg = "店铺分享描述过长" })); } if (!string.IsNullOrEmpty(model.ProShareDesc) && model.ProShareDesc.Length > 200) { return(Json(new Result() { success = false, msg = "商品分享描述过长" })); } if (!string.IsNullOrEmpty(model.DisShareDesc) && model.DisShareDesc.Length > 200) { return(Json(new Result() { success = false, msg = "分销市场分享描述过长" })); } if (!string.IsNullOrEmpty(model.RecruitShareDesc) && model.RecruitShareDesc.Length > 200) { return(Json(new Result() { success = false, msg = "招募分享描述过长" })); } model.ShopShareDesc = FilterShareString(model.ShopShareDesc); model.ProShareDesc = FilterShareString(model.ProShareDesc); model.DisShareDesc = FilterShareString(model.DisShareDesc); model.RecruitShareDesc = FilterShareString(model.RecruitShareDesc); _iDistributionService.UpdateDistributionShare(model); return(Json(new Result() { success = true, msg = "保存成功" })); }