From 1b6c51f7125630fee139eb46fc9dd444a40755f6 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 29 May 2026 18:48:45 +0800 Subject: [PATCH] fix: use compact JSON (no spaces) for body hash consistency --- reallife_asset/rl_volcengine_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reallife_asset/rl_volcengine_client.py b/reallife_asset/rl_volcengine_client.py index 55dda9f..1ff0c39 100644 --- a/reallife_asset/rl_volcengine_client.py +++ b/reallife_asset/rl_volcengine_client.py @@ -70,8 +70,8 @@ async def call_volcengine_api(vendor, operation, params, api_mapping): x_date = now.strftime("%Y%m%dT%H%M%SZ") short_x_date = x_date[:8] - # Payload - body = json.dumps(params, ensure_ascii=False) + # Payload - compact JSON (no extra spaces) + body = json.dumps(params, ensure_ascii=False, separators=(',', ':')) x_content_sha256 = _hash_sha256(body) # Query params: Action + Version