Skip to content

Commit 89920a4

Browse files
committed
fix:PutPolicy中DeleteAfterDays属性没有Json序列化
1 parent d7f1791 commit 89920a4

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

Qiniu/RS/PutPolicy.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,16 @@ public int CallbackFetchKey
245245
}
246246

247247

248-
/// <summary>
249-
/// 文件在多少天后被删除,七牛将文件上传时间与指定的deleteAfterDays天数相加,得到的时间入到后一天的午夜(CST,中国标准时间),从而得到文件删除开始时间。例如文件在2015年1月1日上午10:00 CST上传,指定deleteAfterDays为3天,那么会在2015年1月5日00:00 CST之后当天内删除文件
250-
/// </summary>
251-
public int DeleteAfterDays
252-
{
253-
get { return deleteAfterDays; }
254-
set { deleteAfterDays = value; }
255-
}
248+
/// <summary>
249+
/// 文件在多少天后被删除,七牛将文件上传时间与指定的deleteAfterDays天数相加,得到的时间入到后一天的午夜(CST,中国标准时间),从而得到文件删除开始时间。例如文件在2015年1月1日上午10:00 CST上传,指定deleteAfterDays为3天,那么会在2015年1月5日00:00 CST之后当天内删除文件
250+
/// </summary>
251+
[JsonProperty("deleteAfterDays")]
252+
public int DeleteAfterDays
253+
{
254+
get { return deleteAfterDays; }
255+
set { deleteAfterDays = value; }
256+
}
257+
256258
/// <summary>
257259
/// Initializes a new instance of the <see cref="Qiniu.RS.PutPolicy"/> class.
258260
/// </summary>

0 commit comments

Comments
 (0)