From 115e606096d063ad8fa4afbd81219171b71aee20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=AD=A6=E5=B3=B0?= Date: Thu, 7 Dec 2023 15:11:36 +0800 Subject: [PATCH] fix: tone token to str --- common/tone/tone_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tone/tone_request.py b/common/tone/tone_request.py index e17d1f9..7bf394f 100644 --- a/common/tone/tone_request.py +++ b/common/tone/tone_request.py @@ -9,7 +9,7 @@ from common.http import http_request async def get_res_from_tone(req_type, req_api, req_params): tone_url = conf.config['TONE_HOST'] + req_api - token = conf.config['TONE_USER_NAME'] + '|' + conf.config['TONE_TOKEN'] + '|' + str(time.time()) + token = conf.config['TONE_USER_NAME'] + '|' + str(conf.config['TONE_TOKEN']) + '|' + str(time.time()) signature = base64.b64encode(token.encode('utf-8')).decode('utf-8') req_data = { 'username': conf.config['TONE_USER_NAME'], -- Gitee