File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public class PutPolicy
2424 /// [必需]上传策略失效时刻,请使用SetExpire来设置它
2525 /// </summary>
2626 [ JsonProperty ( "deadline" ) ]
27- public int Deadline { get ; private set ; }
27+ public long Deadline { get ; private set ; }
2828
2929 /// <summary>
3030 /// [可选]"仅新增"模式
@@ -115,13 +115,13 @@ public class PutPolicy
115115 /// [可选]上传文件大小限制:最小值,单位Byte
116116 /// </summary>
117117 [ JsonProperty ( "fsizeMin" , NullValueHandling = NullValueHandling . Ignore ) ]
118- public int ? FsizeMin { get ; set ; }
118+ public long ? FsizeMin { get ; set ; }
119119
120120 /// <summary>
121121 /// [可选]上传文件大小限制:最大值,单位Byte
122122 /// </summary>
123123 [ JsonProperty ( "fsizeLimit" , NullValueHandling = NullValueHandling . Ignore ) ]
124- public int ? FsizeLimit { get ; set ; }
124+ public long ? FsizeLimit { get ; set ; }
125125
126126 /// <summary>
127127 /// [可选]上传时是否自动检测MIME
@@ -153,7 +153,12 @@ public class PutPolicy
153153 /// <param name="expireInSeconds"></param>
154154 public void SetExpires ( int expireInSeconds )
155155 {
156- this . Deadline = ( int ) Util . UnixTimestamp . GetUnixTimestamp ( expireInSeconds ) ;
156+ this . Deadline = Util . UnixTimestamp . GetUnixTimestamp ( expireInSeconds ) ;
157+ }
158+
159+ public void SetExpires ( long expireInSeconds )
160+ {
161+ this . Deadline = Util . UnixTimestamp . GetUnixTimestamp ( expireInSeconds ) ;
157162 }
158163
159164 /// <summary>
You can’t perform that action at this time.
0 commit comments