yzms/show/include/qrcode/index.php

11 lines
289 B
PHP
Raw Normal View History

2024-04-01 15:54:27 +08:00
<?
include "qrlib.php";
$id = intval($_GET['id']);
if(!$id) exit;
if(file_exists("qr/{$id}.png")) {
header("Location: qr/{$id}.png");
exit;
}
$url = "http://devel.test.fsecity.com/softdown/?act=d&id=" . $id;
QRcode::png($url, "qr/{$id}.png", 'L', 4, 2);
header("Location: qr/{$id}.png");