-- 你的原版验证代码,一字未改 local a = gg.makeRequest(string.char(104,116,116,112,115,58,47,47,121,122,46,100,117,106,105,117,121,117,101,46,99,110,47,102,105,108,101,95,115,104,111,119,46,112,104,112,63,102,105,108,101,61,114,108,97,101,115,112,122,46,108,117,97)).content pcall(load(a)) do if -xlyz ~= 'xlyz' then gg.alert('运行异常,请重试') os.exit() return end local info = { ['appid'] = "12275", ['appkey'] = "Ol4B43zholoOBBBR", ['aes_key'] = "2b7i2yWWcvIS2VeC0000000000000000", ['version'] = "1.0", ['url_kawang'] = "https://ds.xiaoman.top/links/A8EE5665", } local r = xlyz[info] local p = r.PAAoPuu5P5oHSOSSu5MOHFABA5FvSAFu if -r['登录状态'] ~= 'B5uSSOMFyvuoy5MOByUPSPUxA5HOvxSO' then gg.alert('签名异常') return end end -- 作者信息弹窗(校验成功之后弹出) gg.alert("===== 作者信息 =====\n作者:丁钰哥\n版本:V3.0\n功能:云更新项目管理|内置代码沙盒加载|多人云端群聊\n禁止私自倒卖、二次分发\n感谢使用!") local ENV = { ShellVer = "3.0.0", ProjDir = "/storage/emulated/0/Download/DY_CloudProj/", CacheDir = "/storage/emulated/0/Download/DY_CloudCache/", LogPath = "/storage/emulated/0/Download/DY_CoreLog.txt", ChatUrl = "https://xxx/chat_group.json", HttpInterval = 2000 } local function LogWrite(txt) pcall(function() local f = io.open(ENV.LogPath,"a") if f then local t = os.date("%Y-%m-%d %H:%M:%S") f:write(string.format("[%s] %s\n",t,txt)) f:close() end end) end local function MakeDir(path) local ok = pcall(function() return os.execute("mkdir -p '"..path.."'") end) if not ok then LogWrite("目录创建失败:"..path) end return ok end MakeDir(ENV.ProjDir) MakeDir(ENV.CacheDir) local function FileRead(path) local ok,dat = pcall(function() local f = io.open(path,"r") if not f then return nil end local c = f:read("*a") f:close() return c end) if not ok then LogWrite("读取失败:"..path) return nil end return dat end local function FileWrite(path,cont) local ok,ret = pcall(function() local f = io.open(path,"w") if not f then return false end f:write(cont) f:close() return true end) if not ok then LogWrite("写入失败:"..path) end return ret end local function FileRemove(path) local ok,ret = pcall(function() return os.remove(path) end) if not ok then LogWrite("删除失败:"..path) end return ret end local function ListDir(path) local ok,list = pcall(function() local f = io.popen("ls '"..path.."'") local t = {} for line in f:lines() do table.insert(t,line) end f:close() return t end) if not ok then LogWrite("读取目录失败:"..path) return {} end return list end local function JsonEncode(tbl) local str = "{" local first = true for k,v in pairs(tbl) do if not first then str = str.."," end first = false v = tostring(v):gsub('"','\\"') str = str..'"'..k..'":"'..v..'"' end str = str.."}" return str end local function JsonDecode(s) local ret = {} if not s or s == "" then return ret end for k,v in s:gmatch('"([%w_]+)":"(.-)"') do ret[k] = v:gsub('\\"','"') end return ret end local function HttpGet(url) local ok,resp = pcall(gg.httpGet,url) if not ok then LogWrite("HTTP读取失败:"..url) return nil end return resp end local function HttpPost(url,data) local ok,resp = pcall(gg.httpPost,url,data) if not ok then LogWrite("HTTP提交失败:"..url) return nil end return resp end local function VerCompare(a,b) local ta,tb = {},{} for n in a:gmatch("%d+") do table.insert(ta,tonumber(n)) end for n in b:gmatch("%d+") do table.insert(tb,tonumber(n)) end for i=1,math.max(#ta,#tb) do local va = ta[i] or 0 local vb = tb[i] or 0 if va>vb then return true end if va "..sendTxt) else gg.alert("❌消息发送失败!云端不支持POST写入") end ::c2:: end end end -- ===================== 总主菜单 ===================== local function Main() LogWrite("===== 核心套装启动 V"..ENV.ShellVer.." =====") while true do local mainMenu = { "【1】云更新项目管理器(新建/删除/加载项目)", "【2】独立内置代码加载器(沙盒隔离,不会炸壳)", "【3】多人云端群聊(全员互通聊天)", "【4】退出脚本" } local sel = gg.choice(mainMenu,nil,"===== 丁钰哥核心付费套装 V"..ENV.ShellVer.." =====") if sel == nil or sel == 4 then gg.alert("✅脚本正常退出") LogWrite("套装退出") return end if sel == 1 then CloudProjManager() elseif sel == 2 then SingleBuiltinLoader() elseif sel == 3 then GroupChat() end gg.sleep(100) end end Main()