This commit is contained in:
Gitea
2022-01-24 10:43:35 +08:00
commit 15dfc6576b
786 changed files with 219240 additions and 0 deletions

22
core/qrcode.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
/**
* @copyright (C)2016-2099 Hnaoyun Inc.
* @author XingMeng
* @email hnxsh@foxmail.com
* @date 2017年12月24日
* 二维码生成
*/
// 绘制二维码图片
function draw_qcode($string)
{
require dirname(__FILE__) . '/extend/qrcode/phpqrcode.php'; // 引入类文件
QRcode::png($string, false, 'M', 6, 1); // 生成二维码图片
}
if (isset($_GET['string']) && $string = $_GET['string']) {
draw_qcode($string);
} else {
die('地址必须传入string参数');
}