
























如果有VPS,或者开源的路由器,安装一个nginx,
添加lua-nginx-module,再编译安装qrencode for lua ,用下面的lua代码,访问http://youip/qr?t=hello 就可以看到效果啦:
local qr = require "qrencode"
local args = ngx.req.get_uri_args()
ngx.header.content_type = 'image/png'
ngx.say(qr
{
text = args.t or "text",
size = 5
}
)
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。