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))