🤞 Sync 2025-11-08 00:10:39
This commit is contained in:
@@ -140,6 +140,7 @@ function link_add_node()
|
||||
local chunk = http.formvalue("chunk")
|
||||
local chunk_index = tonumber(http.formvalue("chunk_index"))
|
||||
local total_chunks = tonumber(http.formvalue("total_chunks"))
|
||||
local group = http.formvalue("group") or "default"
|
||||
|
||||
if chunk and chunk_index ~= nil and total_chunks ~= nil then
|
||||
-- 按顺序拼接到文件
|
||||
@@ -154,7 +155,7 @@ function link_add_node()
|
||||
end
|
||||
-- 如果是最后一片,才执行
|
||||
if chunk_index + 1 == total_chunks then
|
||||
luci.sys.call("lua /usr/share/passwall/subscribe.lua add log")
|
||||
luci.sys.call("lua /usr/share/passwall/subscribe.lua add " .. group)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user