@@ -536,7 +536,6 @@ function listPrefixReq(mac, config, bucket, options, callbackFunc) {
536536 reqParams . prefix = "" ;
537537 }
538538
539- console . log ( typeof ( options . limit ) ) ;
540539 if ( options . limit >= 1 && options . limit <= 1000 ) {
541540 reqParams . limit = options . limit ;
542541 } else {
@@ -650,50 +649,11 @@ BucketManager.prototype.privateDownloadUrl = function(domain, fileName,
650649// @return 公开下载链接
651650BucketManager . prototype . publicDownloadUrl = function ( domain , fileName ) {
652651 return domain + "/" + encodeURI ( fileName ) ;
653- }
654-
655- // 上传策略
656-
657- function PutPolicy2 ( options ) {
658-
659- if ( typeof options !== 'object' ) {
660- return false ;
661- }
662-
663- this . scope = options . scope || null ;
664- this . expires = options . expires || 3600 ;
665- this . insertOnly = options . insertOnly || null ;
666-
667- this . saveKey = options . saveKey || null ;
668- this . endUser = options . endUser || null ;
669-
670- this . returnUrl = options . returnUrl || null ;
671- this . returnBody = options . returnBody || null ;
672-
673- this . callbackUrl = options . callbackUrl || null ;
674- this . callbackHost = options . callbackHost || null ;
675- this . callbackBody = options . callbackBody || null ;
676- this . callbackBodyType = options . callbackBodyType || null ;
677- this . callbackFetchKey = options . callbackFetchKey || null ;
678-
679- this . persistentOps = options . persistentOps || null ;
680- this . persistentNotifyUrl = options . persistentNotifyUrl || null ;
681- this . persistentPipeline = options . persistentPipeline || null ;
682-
683- this . fsizeLimit = options . fsizeLimit || null ;
684-
685- this . fsizeMin = options . fsizeMin || null ;
686-
687- this . detectMime = options . detectMime || null ;
688-
689- this . mimeLimit = options . mimeLimit || null ;
690-
691- this . deleteAfterDays = options . deleteAfterDays || null ;
692- this . fileType = options . fileType || null ;
693652
694653}
695654
696655// 上传策略
656+ // @link https://developer.qiniu.com/kodo/manual/1206/put-policy
697657function PutPolicy ( options ) {
698658 if ( typeof options !== 'object' ) {
699659 throw new Error ( 'invalid putpolicy options' ) ;
0 commit comments