     // 2.1版本的OSS SDK
     // 同步上传
     func uploadAliyunOSSImage(url:NSURL) {
+        print("uploadAliyunOSSImage url = \(url)")
         let put = OSSPutObjectRequest()
         // required fields
-        put.bucketName = "android-test"
-        put.objectKey = "file1m"
+        put.bucketName = "sjf-test"
+        put.objectKey = "file123"
         put.uploadingFileURL = url
         put.uploadProgress = {(bytesSent, totalBytesSent, totalBytesExpectedToSend) -> Void in
             let log = String(format:"%zd, %zd, %zd", bytesSent, totalBytesSent, totalBytesExpectedToSend)

                print("upload object success!");
            }
        }
        
    }
}


        return token;
        }
        }];
        */
        
        let conf = OSSClientConfiguration()
        conf.maxRetryCount = 3
        conf.enableBackgroundTransmitService = false // 是否开启后台传输服务
        conf.timeoutIntervalForRequest = 15
        conf.timeoutIntervalForResource = 24 * 60 * 60
        ossClient = OSSClient(endpoint: endPoint, credentialProvider: credential, clientConfiguration: conf)
    }
}

