1 Star 0 Fork 0

李猛 / ThinkAdmin 生成二维码

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

ThinkAdmin 生成二维码

介绍

tp6.0 ThinkAdmin 生成二维码

软件架构

软件架构说明

安装教程

  1. 使用composer.json
  2. xxxx
  3. xxxx

使用说明

  1. 后端直接引入new然后按自己的需求调整二维码大小就可以了
  2. 前段是Vue的写法希望你看的懂
  3. xxxx

示例代码如下php

info['path'] = '/ucserver/api.Tools/qrcode'; $this->info = json_encode($this->info,JSON_UNESCAPED_UNICODE); $this->fetch(); } /** * 生成二维码 * @param string */ public function qrcode($data = ''){ $qrCode = new QrCode(); $qrCode ->setText($data) ->setSize(300) ->setPadding(10) ->setErrorCorrection('high') ->setForegroundColor(['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0]) ->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0]) ->setLabel('') ->setLabelFontSize(16) ->setImageType(QrCode::IMAGE_TYPE_PNG); header('Content-Type: '.$qrCode->getContentType());//输出到页面 $qrCode->render(); die; } }

Comments ( 0 )

Sign in for post a comment

About

tp6.0 ThinkAdmin 生成二维码 spread retract
Cancel

Releases

No release

Gitee Metrics

Contributors

All

Activities

load more
can not load any more
PHP
1
https://git.oschina.net/wwwadmin/thinkadmin_generate_qr_code.git
git@git.oschina.net:wwwadmin/thinkadmin_generate_qr_code.git
wwwadmin
thinkadmin_generate_qr_code
ThinkAdmin 生成二维码
master

Search