     var ossClient:OSSClient?
     let AccessKey = "3YpqwaeHIWQlIJQk"
     let SecretKey = "z9Pq9bnY6pzKzGnoS3DEz8END8lwwm"
+    let endPoint = "http://oss-cn-hangzhou.aliyuncs.com"
     let userImageBucket = "dingshanimage"
     let uploadDataPath = "userupload"
 //    private var bucket:OSSBucket?

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

        let credential = OSSPlainTextAKSKPairCredentialProvider(plainTextAccessKey: AccessKey, secretKey:SecretKey)
    
        // 自实现签名，可以用本地签名也可以远程加签
        /*
        let credential1 = [[OSSCustomSignerCredentialProvider alloc] initWithImplementedSigner:^NSString *(NSString *contentToSign, NSError *__autoreleasing *error) {
        NSString *signature = [OSSUtil calBase64Sha1WithData:contentToSign withSecret:@"3YpqwaeHIWQlIJQk"];
        if (signature != nil) {
        *error = nil;
        } else {
        // construct error object
        *error = [NSError errorWithDomain:@"<your error domain>" code:OSSClientErrorCodeSignFailed userInfo:nil];
        return nil;
        }
        return [NSString stringWithFormat:@"OSS %@:%@", @"z9Pq9bnY6pzKzGnoS3DEz8END8lwwm", signature];
        }];
        */
        
        /*
        
