playcode bug
This commit is contained in:
parent
8842c6f504
commit
7766afa1b6
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -83,7 +83,6 @@ def getPlayCode(fileId:str):
|
|||
"currentTimeStamp": currentTimeStamp,
|
||||
"pcfg": "basicDrmPreset",
|
||||
}
|
||||
print(Original)
|
||||
return jwt.encode(Original, referKey, algorithm='HS256')
|
||||
|
||||
def startSeVideo(fileId:str):
|
||||
|
|
|
|||
Loading…
Reference in New Issue