|
|
@ -58,7 +58,7 @@ def fetch_token():
|
|
|
|
# 检查结果中是否包含access_token和scope
|
|
|
|
# 检查结果中是否包含access_token和scope
|
|
|
|
if ('access_token' in result.keys() and 'scope' in result.keys()):
|
|
|
|
if ('access_token' in result.keys() and 'scope' in result.keys()):
|
|
|
|
# 检查scope中是否包含audio_tts_post
|
|
|
|
# 检查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')
|
|
|
|
print('please ensure has check the tts ability')
|
|
|
|
return ''
|
|
|
|
return ''
|
|
|
|
# 返回access_token
|
|
|
|
# 返回access_token
|
|
|
|