<% local msg = {} if _SESSION["logined"] ~= nil then local nType,strVersion,strUserName,strCopyNumber,strOS,nLeftDay = c_GetLicenseInfo() local licenseInfo = {} licenseInfo["type"] = nType licenseInfo["version"] = c_GetVersion() licenseInfo["username"] = strUserName licenseInfo["copynumber"] = strCopyNumber licenseInfo["os"] = c_GetOsType() licenseInfo["leftday"] = nLeftDay licenseInfo["lastversion"] = c_GetLastVersion() rawset(msg, "code", 0) rawset(msg, "data", licenseInfo) print(json.encode(msg)) else rawset(msg, "code", -1) rawset(msg, "error", "Not logged in") print(json.encode(msg)) end %>