/// <summary> /// 清空防盗链规则 /// </summary> /// <param name="request"></param> /// <returns></returns> public OperateResultDto ClearReferer(ClearRefererParam request) { return(ToolCommon.GetResponse(() => { Check.TrueByString(request != null, $"{nameof(request)} is null", HttpStatus.Err.Name); var zone = Core.Tools.GetZone(_aLiYunConfig, request.PersistentOps.Zone, () => ZoneEnum.HangZhou); var client = _aLiYunConfig.GetClient(zone); var bucket = Core.Tools.GetBucket(_aLiYunConfig, request.PersistentOps.Bucket); client.SetBucketReferer(new SetBucketRefererRequest(bucket)); return new OperateResultDto(true, "success"); }, message => new OperateResultDto(false, message))); }
/// <summary> /// 清空防盗链规则 /// </summary> /// <param name="request"></param> /// <returns></returns> public OperateResultDto ClearReferer(ClearRefererParam request) { return(new OperateResultDto(false, "不支持api配置操作防盗链")); }
public OperateResultDto ClearReferer(ClearRefererParam request) { throw new System.NotImplementedException(); }