信呼OA版本v2.3.8
This commit is contained in:
17
include/chajian/qrcodeChajian.php
Normal file
17
include/chajian/qrcodeChajian.php
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user