From 0df96ee74c0e2636a1a5371a53f6c9d820e7b00e Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 14 Apr 2022 10:31:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=AD=BE=E5=90=8D=E4=B8=8D?= =?UTF-8?q?=E7=94=A8try?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/apps/vod/views.py | 8 ++++---- server/apps/vod/vodclient.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/apps/vod/views.py b/server/apps/vod/views.py index b570be7..c4adcb9 100644 --- a/server/apps/vod/views.py +++ b/server/apps/vod/views.py @@ -131,8 +131,8 @@ class PlayCodeAPIView(APIView): """获取播放签名 """ from .vodclient import appId - try: - playcode = getPlayCode(fileId) - except: - raise ParseError('获取签名失败') + # try: + playcode = getPlayCode(fileId) + # except: + # raise ParseError('获取签名失败') return Response({'psign':playcode, 'appId': appId}) diff --git a/server/apps/vod/vodclient.py b/server/apps/vod/vodclient.py index 17c6e13..e887f58 100644 --- a/server/apps/vod/vodclient.py +++ b/server/apps/vod/vodclient.py @@ -94,7 +94,7 @@ def startSeVideo(fileId:str): client = initClient() req = models.ProcessMediaByProcedureRequest() params = { - "FileId":field, + "FileId":fileId, "ProcedureName":"myAesEncryptPreset" } req.from_json_string(json.dumps(params))