|
@@ -110,7 +110,7 @@ class VoicePromptView(View):
|
|
|
auth = oss2.Auth(OSS_STS_ACCESS_KEY, OSS_STS_ACCESS_SECRET)
|
|
|
bucket = oss2.Bucket(auth, 'oss-cn-shenzhen.aliyuncs.com', 'ansjer-static-resources')
|
|
|
filename = res['filename']
|
|
|
- obj = 'voice_prompt/uid/channel/'.format(uid=uid, channel=channel) + filename
|
|
|
+ obj = 'voice_prompt/{uid}/{channel}/'.format(uid=uid, channel=channel) + filename
|
|
|
url = bucket.sign_url('GET', obj, 3600)
|
|
|
res['url'] = url
|
|
|
del res['filename']
|