Commit 85a3ba21 authored by Davve's avatar Davve

切换视频上传

parent 93015ed2
...@@ -3,20 +3,13 @@ ...@@ -3,20 +3,13 @@
# __author__ = "chenwei" # __author__ = "chenwei"
# Date: 2018/11/20 # Date: 2018/11/20
from django.middleware.csrf import get_token
from utils.base import APIView from utils.base import APIView
from gm_upload.utils.qiniu_tool import QiniuTool from gm_upload import get_video_upload_token
qiniu_video = {
'domain': 'video-static.igengmei.com',
'bucket': 'video',
}
class QiniuToken(APIView): class QiniuToken(APIView):
def get(self, request): def get(self, request):
token = QiniuTool.get_token(qiniu_video['bucket'])
return { return {
'token': token 'token': get_video_upload_token()
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment