更改文件存储的key

This commit is contained in:
Your Name
2025-08-26 21:18:56 +08:00
parent e33dec6713
commit 781f7707f8

View File

@@ -453,7 +453,7 @@ def playwright_post(cookies, content, image_key=None):
context.close()
browser.close()
key = f'{uuid.uuid4()}.png'
key = f'screenshot/{uuid.uuid4()}.png'
put_object(key, screenshot_content)
return {'response_url': post_url, 'screenshot_key': key}
@@ -522,7 +522,7 @@ def playwright_comment(cookies, target_url, content, image_key=None):
context.close()
browser.close()
key = f'{uuid.uuid4()}.png'
key = f'screenshot/{uuid.uuid4()}.png'
put_object(key, screenshot_content)
return {
'response_url': target_url,
@@ -1012,7 +1012,7 @@ def playwright_share(cookies, target_url, content):
context.close()
browser.close()
key = f'{uuid.uuid4()}.png'
key = f'screenshot/{uuid.uuid4()}.png'
put_object(key, screenshot_content)
return {'response_url': post_url, 'screenshot_key': key}