Browse Source

回放列表UID 加密2

chenshibin 4 years ago
parent
commit
3d58834420
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Controller/CloudStorage.py

+ 1 - 3
Controller/CloudStorage.py

@@ -11,7 +11,6 @@
 @file: cloudstorage.py
 @Contact: chanjunkai@163.com
 """
-import base64
 import json
 import os
 import time
@@ -253,7 +252,6 @@ class CloudStorageView(View):
 
     def do_sign_play_m3u8(self, request_dict, response):
         uid = request_dict.get('uid', None)
-        uid = base64.b64decode(uid).decode("utf-8")
         channel = request_dict.get('channel', None)
         storeTime = request_dict.get('time', None)
         now_time = int(time.time())
@@ -467,7 +465,7 @@ class CloudStorageView(View):
             )
             vod_url = '{server_domain}/cloudstorage/signplaym3u8?' \
                       'uid={uid}&channel={channel}&time={time}&sign=tktktktk'. \
-                format(server_domain=SERVER_DOMAIN, uid=base64.b64encode(uid), channel=channel, time=vod['time'])
+                format(server_domain=SERVER_DOMAIN, uid=uid, channel=channel, time=vod['time'])
             ts_num = int(vod['fg']) & 0xf
             vod_play_list.append({
                 'name': vod['time'],