Browse Source

imagelist

chenjunkai 6 years ago
parent
commit
2809336335
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Controller/DetectController.py

+ 3 - 1
Controller/DetectController.py

@@ -101,6 +101,8 @@ class DetectControllerView(View):
             if p['is_st'] == 1:
                 p['img'] = img_bucket.sign_url('GET', '{uid}/{channel}/{time}.jpeg'.
                                                 format(uid=devUid, channel=p['Channel'], time=eventTime), 300)
+                p['img_list'] = img_bucket.sign_url('GET', '{uid}/{channel}/{time}.jpeg'.
+                                                format(uid=devUid, channel=p['Channel'], time=eventTime), 300)
             elif p['is_st'] == 2:
                 # 列表装载回放时间戳标记
                 vodqs = VodHlsModel.objects.filter(uid=uid, channel=p['Channel'], time=eventTime) \
@@ -114,7 +116,7 @@ class DetectControllerView(View):
                     thumb1 = bucket.sign_url('GET', ts, 3600, params={'x-oss-process': 'video/snapshot,t_1000,w_700'})
                     thumb2 = bucket.sign_url('GET', ts, 3600, params={'x-oss-process': 'video/snapshot,t_2000,w_700'})
                     thumb3 = bucket.sign_url('GET', ts, 3600, params={'x-oss-process': 'video/snapshot,t_3000,w_700'})
-                    p['gif'] = [thumb0, thumb1, thumb2, thumb3]
+                    p['img_list'] = [thumb0, thumb1, thumb2, thumb3]
             if devUid in uid_type_dict.keys():
                 p['uid_type'] = uid_type_dict[devUid]
             else: