二维码推广背景

master
tping 3 years ago
parent bf51ef52cd
commit dff1a5f101

@ -62,7 +62,7 @@ class JumpController extends HomeController
public function getImgs() public function getImgs()
{ {
$isHttps = is_https(); $isHttps = is_https();
$backgroundImg = ($isHttps? 'https://': 'http://').$_SERVER['HTTP_HOST']."/Public/Qrcode/images/b1.png"; $backgroundImg = ($isHttps? 'https://': 'http://').$_SERVER['HTTP_HOST']."/Public/Qrcode/images/b2.png";
$qrCodeImg = ($isHttps? 'https://': 'http://').$_SERVER['HTTP_HOST']."/Public/Qrcode/images/qrcode.png"; $qrCodeImg = ($isHttps? 'https://': 'http://').$_SERVER['HTTP_HOST']."/Public/Qrcode/images/qrcode.png";
$id = I('request.id', ''); $id = I('request.id', '');
if (!$id || $id == 'undefined') { if (!$id || $id == 'undefined') {
@ -95,11 +95,13 @@ class JumpController extends HomeController
// 背景图 // 背景图
$qrcodePromotion = M('qrcode_promotion', 'tab_')->where(['id' => $qrcodePromotionList['qp_id']])->find(); $qrcodePromotion = M('qrcode_promotion', 'tab_')->where(['id' => $qrcodePromotionList['qp_id']])->find();
$qrcode = array_values($qrcode);
$this->ajaxReturn([ $this->ajaxReturn([
'id' => $_REQUEST['id'], 'id' => $_REQUEST['id'],
'status' => 1, 'status' => 1,
'background_img' => $qrcodePromotion['background_img'], 'background_img' => $qrcodePromotion['background_img'],
'qrcode_img' => $qrcode[$imgIndex] 'qrcode_img' => $qrcode[$imgIndex],
'q' => $qrcode
]); ]);
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Loading…
Cancel
Save