Explorar o código

修复删除语音功能的异常

tanghongbin %!s(int64=4) %!d(string=hai) anos
pai
achega
4e7a63207f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/VoicePromptController.py

+ 1 - 1
Controller/VoicePromptController.py

@@ -147,7 +147,7 @@ class VoicePromptView(View):
                 if device_qs.exists():
                     voice_qs.delete()
                     auth = oss2.Auth(OSS_STS_ACCESS_KEY, OSS_STS_ACCESS_SECRET)
-                    bucket = oss2.Bucket(auth, 'oss-cn-shenzhen.aliyuncs.com', 'ansjer-static-resources')
+                    bucket = oss2.Bucket(auth, 'http://oss-cn-shenzhen.aliyuncs.com', 'ansjer-static-resources')
                     obj = 'voice_prompt/{uid}/{channel}/'.format(uid=uid, channel=voice_qs[0].channel) + voice_qs[0].filename
                     bucket.delete_object(obj)
                     return response.json(0)