Skip to content

Commit 67e11d4

Browse files
author
videopls
committed
更新main.lua/os_string.lua
1 parent 55e3804 commit 67e11d4

File tree

2 files changed

+39
-5
lines changed

2 files changed

+39
-5
lines changed

VideoOS/VenvyLibrary/src/main/assets/lua/main.lua

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ local function checkHotspotShow(data)
163163
commonParam = Native:commonParam()
164164
}
165165

166+
local videoInfo = Native:getVideoInfo()
167+
168+
if videoInfo["extendDict"] ~= nil then
169+
paramData["videoInfo"] = videoInfo["extendDict"]
170+
end
171+
166172
local paramDataString = Native:tableToJson(paramData)
167173
-- local OS_HTTP_POST_CHECK_HOTSPOT = OS_HTTP_HOST .. "/api/notice"
168174

@@ -365,6 +371,13 @@ local function getTaglist()
365371
title = Native:getVideoTitle(),
366372
commonParam = Native:commonParam()
367373
}
374+
375+
local videoInfo = Native:getVideoInfo()
376+
377+
if videoInfo["extendDict"] ~= nil then
378+
paramData["videoInfo"] = videoInfo["extendDict"]
379+
end
380+
368381
local paramDataString = Native:tableToJson(paramData)
369382
--print("[LuaView] "..paramDataString)
370383
--print("[LuaView] "..Native:aesEncrypt(paramDataString, OS_HTTP_PUBLIC_KEY, OS_HTTP_PUBLIC_KEY))
@@ -429,8 +442,15 @@ local function getSimulationTag()
429442
videoId = Native:nativeVideoID(),
430443
commonParam = Native:commonParam()
431444
}
432-
local extendJson = Native:getConfigExtendJSONString()
433-
local extendTable = toTable(extendJson)
445+
446+
local extendTable = nil
447+
448+
local videoInfo = Native:getVideoInfo()
449+
450+
if videoInfo["extendDict"] ~= nil then
451+
paramData["videoInfo"] = videoInfo["extendDict"]
452+
extendTable = videoInfo["extendDict"]
453+
end
434454

435455
if extendTable["creativeName"] ~= nil then
436456
paramData["creativeName"] = extendTable["creativeName"]
@@ -487,6 +507,13 @@ local function getResourcelist()
487507
videoId = Native:nativeVideoID(),
488508
commonParam = Native:commonParam()
489509
}
510+
511+
local videoInfo = Native:getVideoInfo()
512+
513+
if videoInfo["extendDict"] ~= nil then
514+
paramData["videoInfo"] = videoInfo["extendDict"]
515+
end
516+
490517
local paramDataString = Native:tableToJson(paramData)
491518
-- print("[LuaView] getResourcelist")
492519
--print("[LuaView] "..Native:aesEncrypt(paramDataString, OS_HTTP_PUBLIC_KEY, OS_HTTP_PUBLIC_KEY))
@@ -562,6 +589,13 @@ function show(args)
562589
videoId = Native:nativeVideoID(),
563590
commonParam = Native:commonParam()
564591
}
592+
593+
local videoInfo = Native:getVideoInfo()
594+
595+
if videoInfo["extendDict"] ~= nil then
596+
paramData["videoInfo"] = videoInfo["extendDict"]
597+
end
598+
565599
local paramDataString = Native:tableToJson(paramData)
566600
--print("luaview "..Native:aesEncrypt(paramDataString, OS_HTTP_PUBLIC_KEY, OS_HTTP_PUBLIC_KEY))
567601
mainNode.request:post(OS_HTTP_GET_CONFIG, {

VideoOS/VenvyLibrary/src/main/assets/lua/os_string.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ OS_HTTP_HOST = Native:videoOShost()
55
-- OS_HTTP_HOST = "http://dev-videopublicapi.videojj.com/videoos-api/"
66

77
OS_HTTP_GET_CONFIG = OS_HTTP_HOST .. "/api/config"
8-
OS_HTTP_GET_TAG_LIST = OS_HTTP_HOST .. "/api/v2/queryLaunchInfo"
9-
OS_HTTP_GET_RESOURCE_LIST = OS_HTTP_HOST .. "/api/preloadLaunchInfo"
8+
OS_HTTP_GET_TAG_LIST = OS_HTTP_HOST .. "/api/v3/queryLaunchInfo"
9+
OS_HTTP_GET_RESOURCE_LIST = OS_HTTP_HOST .. "/api/v2/preloadLaunchInfo"
1010
OS_HTTP_GET_MOBILE_QUERY = OS_HTTP_HOST .. "/api/mobileQuery"
1111
OS_HTTP_POST_MOBILE_QUERY = OS_HTTP_HOST .. "/api/mobileModify"
1212
OS_HTTP_GET_COMMON_QUERY = OS_HTTP_HOST .. "/api/commonQuery"
1313
OS_HTTP_GET_SIMULATION_TAG = OS_HTTP_HOST .. "/simulation/queryInfo"
14-
OS_HTTP_POST_CHECK_HOTSPOT = OS_HTTP_HOST .. "/api/notice"
14+
OS_HTTP_POST_CHECK_HOTSPOT = OS_HTTP_HOST .. "/api/v3/notice"
1515
OS_HTTP_POST_CHECK_HOTSPOT_TRACK = OS_HTTP_HOST .. "/statisticConfirmLaunch"
1616

1717
--数据统计网络相关

0 commit comments

Comments
 (0)