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

  

分类:

技术点:

相关文章:

  • 2021-12-09
  • 2021-06-26
  • 2021-11-20
  • 2021-11-20
  • 2021-07-18
猜你喜欢
  • 2022-02-16
  • 2021-11-17
  • 2021-09-09
  • 2021-09-08
  • 2021-12-09
  • 2021-11-17
相关资源
相似解决方案