function scerweima($url){
$path = 'upload/images';
if (!is_dir($path)) {
mkdir($path, 0777, true);
}
include_once EXTEND_PATH.'phpqrcode/phpqrcode.php';
$value = $url; //二维码内容
$errorCorrectionLevel = 'L'; //容错级别
$matrixPointSize = 5; //生成图片大小
//生成二维码图片
$filename = $path . '/code' . $url . '.jpg';
QRcode::png($value,$filename , $errorCorrectionLevel, $matrixPointSize, 2);
$filepath = $filename;
return $filepath;
}