Commit f70de688 authored by jianghaiming's avatar jianghaiming

update:Set

parents 32ba2ef9 b82ad2d4
......@@ -173,17 +173,17 @@ class GetImage
// 底部二维码
$qr = new QR($qr_string);
$qr_size = 100;
$qr_size = 200;
$qr->setSize($qr_size);
$qr->setRoundBlockSize(QrCode::ROUND_BLOCK_SIZE_MODE_MARGIN);
$qr_string = $qr->get();
$qr_img = imagecreatefromstring($qr_string);
list($qr_w,$qr_h) = getimagesizefromstring($qr_string);
imagecopyresized($im, $qr_img, 49, 1102, 0, 0, $qr_size, $qr_size, $qr_size, $qr_size);
imagecopyresized($im, $qr_img, 0, 1055, 0, 0, $qr_size, $qr_size, $qr_size, $qr_size);
// 底部文字
imagettftext($im, 21,0, 195, 1160, 333333 ,$this->font_m, "长按扫码快速抢券");
imagettftext($im, 16,0, 195, 1200, 666666 ,$this->font_r, "分享自 生活圈APP");
imagettftext($im, 21,0, 295, 1160, 333333 ,$this->font_m, "长按扫码快速抢券");
imagettftext($im, 16,0, 295, 1200, 666666 ,$this->font_r, "分享自 生活圈APP");
// 底部logo
$logo_path = __DIR__.'/images/3_logo.png';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment