<% -- @author FlashSoft local act = luci.http.formvalue('act') %> <% local get_action = require("betternet") if get_action[act] then json = get_action[act]() else json = '{"state": 0, "msg": "不支持的命令"}' end print(json) %>