名称 | 必填 | 类型 | 说明 |
---|---|---|---|
text | 是 | string | 输入内容 |
二维码图片一张
<img src="https://api.vvhan.com/api/qr?text=二维码内容" alt="韩小韩API">
<?php
$text = $_GET['text']; $src = "https://api.vvhan.com/api/qr?text=" . $text; header('Content-type: image/png'); $res = imagecreatefromstring(file_get_contents($src)); imagepng($res); imagedestroy($res);
?>