<?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;
	}
}                                                                                                                                                            