require"import"
import"fzs_drlm"
import"fzs_zwhs"
-- 云端
--基本类名
require "import"
import "android.app.*"
import "android.os.*"
import "android.widget.*"
import "android.view.*"
--[[**
* @Name: 123.lua
* @Date: 2026-08-14 02:58:06
* @Description: No special instructions
*
**]]
-- load the "import" module,
-- which is use to import Java class and lua module
require "import"
-- Android base class library
-- if you don't need these, please remove them
import "android.app.*"
import "android.os.*"
import "android.widget.*"
import "android.view.*"
import "android.widget.ListView"
import "android.widget.TextView"
import "android.widget.LinearLayout"
import "android.net.Uri"
import "com.androlua.LuaWebView"
import "com.androlua.LuaAdapter"
主题色=0xff88ada6
--设置状态栏颜色
this.window.setStatusBarColor(主题色)
--设置导航栏颜色
this.window.setNavigationBarColor(主题色)
--进度条对话框
xxx进度条=ProgressDialog.show(this,"","正在加载中,请等待…",false,true)
function xxx播放视频(标题,内容)
local 拼接="https://lz.qaiu.top/parser?url="..内容
Http.get(拼接,function(a,b)
if a==200 and b then--判断状态
activity.newActivity("bfq",{标题,拼接})
xxx进度条.dismiss()--关闭
else
print("错误-200,网络连接失败!")
end
end)
end
function xxx构建列表(源码)
xxxadp.clear()
local 匹配=源码:gmatch('<div class="mbx"><a href="(.-)" target="_blank" class="mlink"><img src="(.-)" align="absmiddle" border="0">(.-)<div class="mmr"><span>(.-)</span><span>(.-)</span>')
for 链接,_,标题,大小,时间 in 匹配 do
xxxadp.add{
wenben1=标题,
lianj="https://"..xxx_域名链..链接,
wenben2="上传时间: "..时间.." 文件大小: "..大小,
}
end
xxx进度条.dismiss()--关闭
end
自定义布局={
LinearLayout,--线性布局
layout_width="fill",--布局宽度
layout_height="fill",--布局高度
orientation="vertical",--布局方向
{
ListView,--列表控件
layout_width="fill",--布局宽度
layout_height="fill",--布局高度
layout_weight=1,--权重分配
dividerHeight=1,--列表分隔线高度
id="xxxlist",--控件ID
},
}
--加载布局
activity.setContentView(loadlayout(自定义布局))
--适配器布局
xxxitem={
LinearLayout,--线性布局
layout_width="fill",--布局宽度
layout_height="fill",--布局高度
orientation="vertical",--布局方向
gravity="center|left",--全局重力
padding="10dp",--内边距
{
TextView,--文本框控件
text="标题",--文本内容
textSize="14sp",--文本大小
textColor=0xff222222,--文本颜色
id="wenben1",--控件ID
},
{
TextView,--文本框控件
visibility=8,--显示/隐藏控件
id="lianj",--控件ID
},
{
TextView,--文本框控件
text="内容",--文本内容
textSize="12sp",--文本大小
textColor=0xff666666,--文本颜色
id="wenben2",--控件ID
},
}
xxxdata={}--储存表
xxxadp=LuaAdapter(this,xxxdata,xxxitem)--Lua适配器
xxxlist.setAdapter(xxxadp)--设置适配器
--点击项目事件
xxxlist.onItemClick=function(a,b)
xxx进度条.show()--显示
local 单击标题=b.tag.wenben1.text
local 单击链接=b.tag.lianj.text
xxx播放视频(单击标题,单击链接)
return true
end
--获取源码
xxx_llq=LuaWebView(this)
xxx_llq.getSettings().setJavaScriptEnabled(true)
xxx_llq.setWebViewClient{
onPageFinished=function(a,b)--网页加载完毕
xxx_llq.evaluateJavascript("function getSource(){return \"<html>\"+document.getElementsByTagName('html')[0].innerHTML+\"</html>\";};getSource();",{
onReceiveValue=function(c)
xxx_llq.stopLoading()--停止加载
local 源码=c:gsub("%%","%%;"):gsub("\\\\n","%%n"):gsub("\\n","\n"):gsub("%%n","\\n"):gsub("%%;","%%"):gsub("\\u003C","<"):gsub("\\\"","\""):gsub("^\"",""):gsub("\"$","")
if 源码 then
xxx构建列表(源码)
end
end
})
end
}
xxx_首页链="https://yghy.lanzouw.com/b00ht79jc"
xxx_域名链=Uri.parse(xxx_首页链).authority--取域名
xxx_llq.loadUrl(xxx_首页链)--加载网页
资源密码:yghy
本站资源,均来自网络,版权归原作者,所有资源和文章仅限用于学习和研究目的。
不得用于商业或非法用途,否则,一切责任由该用户承担!
您必须在下载后的24个小时之内,从您的电脑&手机中彻底删除下载的资源
资源失效,举报投诉,建议意见等,都可以来反馈。综合反馈