diff --git a/src/Guide_stick_system/voice_assistant/fetchToken.py b/src/Guide_stick_system/voice_assistant/fetchToken.py index ba23d52..851fa1d 100644 --- a/src/Guide_stick_system/voice_assistant/fetchToken.py +++ b/src/Guide_stick_system/voice_assistant/fetchToken.py @@ -58,7 +58,7 @@ def fetch_token(): # 检查结果中是否包含access_token和scope if ('access_token' in result.keys() and 'scope' in result.keys()): # 检查scope中是否包含audio_tts_post - if not 'audio_tts_post' in result['scope'].split(' '): + if 'audio_tts_post' not in result['scope'].split(' '): print('please ensure has check the tts ability') return '' # 返回access_token