|
@@ -18,7 +18,7 @@ hangzhou_config = {
|
|
|
class HangZhouOSSClient:
|
|
|
def __init__(self, bucket_name):
|
|
|
self.bucket_name = bucket_name
|
|
|
- self.bucket = oss2.Bucket(auth, hangzhou_config["endpoint"], bucket_name, region=hangzhou_config["region"])
|
|
|
+ self.bucket = oss2.Bucket(auth, hangzhou_config["inner_endpoint"], bucket_name, region=hangzhou_config["region"])
|
|
|
|
|
|
def put_object_from_file(self, object_name, local_file):
|
|
|
result = self.bucket.put_object_from_file(object_name, local_file)
|