fix
This commit is contained in:
parent
10b8bc68b0
commit
f799a978ca
|
@ -10,7 +10,6 @@ logger = Logger(service_name, log_dir=log_dir)
|
|||
access_key_id = "LTAI5tAdu5LRvZwm4LJa21Fo"
|
||||
access_key_secret = "WGvSQsDralTfFAAxhEqLBOgbXqflHo"
|
||||
endpoint_internal = "https://oss-cn-hangzhou-internal.aliyuncs.com"
|
||||
# endpoint_internal = "https://oss-cn-hangzhou.aliyuncs.com"
|
||||
bucket_name = "wishpal-ironfan-media"
|
||||
|
||||
|
||||
|
@ -32,7 +31,7 @@ class S:
|
|||
for lp in self.del_images:
|
||||
os.remove(lp)
|
||||
cnt += 1
|
||||
logger.Info("{} files removed".format(cnt))
|
||||
print("{} files removed".format(cnt))
|
||||
|
||||
def upload_img_to_oss(self, local_path: str, oss_src_id: str):
|
||||
return self.bucket.put_object_from_file(oss_src_id, local_path)
|
||||
|
|
Loading…
Reference in New Issue