信呼OA版本v2.3.8

This commit is contained in:
雨中磐石
2022-08-14 16:47:40 +08:00
parent 4640677d27
commit e3fcd913e3
1405 changed files with 133635 additions and 73 deletions

View File

@@ -0,0 +1,17 @@
<?php
/**
* 创建二维码
*/
include_once(ROOT_PATH.'/include/phpqrcode/phpqrcode.php');
class qrcodeChajian extends Chajian
{
public function show($url='')
{
if($url=='')$url = URL;
$errorCorrectionLevel = 'L'; // 纠错级别L、M、Q、H
$matrixPointSize = 6; // 点的大小1到10
$margin = 1; //表示二维码周围边框空白区域间距值;
$bo = QRcode::png($url, false, $errorCorrectionLevel, $matrixPointSize, $margin, false);
return $bo;
}
}