Browse Source

回放列表UID 加密4

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

+ 1 - 1
Controller/CloudStorage.py

@@ -467,7 +467,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.encode("utf-8")), channel=channel, time=vod['time'])
+                format(server_domain=SERVER_DOMAIN, uid=str(base64.b64encode(uid.encode("utf-8"),'utf-8')), channel=channel, time=vod['time'])
             ts_num = int(vod['fg']) & 0xf
             vod_play_list.append({
                 'name': vod['time'],