Browse Source

Merge branch '2024-11-20-luojunhui-miniprogram-position-change' of Server/title_with_video into 2024-09-23newDbTasks

luojunhui 5 months ago
parent
commit
5041b80959
1 changed files with 4 additions and 2 deletions
  1. 4 2
      server/api/response.py

+ 4 - 2
server/api/response.py

@@ -138,11 +138,13 @@ class Response(object):
             "rootShareId": root_share_id,
             "productionPath": production_path,
             "videoUrl": item['videoPath'],
-            "mini_id": mini_id,
-            "paragraphPosition": index * 0.25
+            "mini_id": mini_id
         }
         if index == 1:
             result['paragraphPosition'] = 0.01
+        else:
+            position = (index - 1) * 0.25
+            result['paragraphPosition'] = position
         item['rootSourceId'] = root_source_id
         return result, item