推广二维码

master
tping 3 years ago
parent 906050c90f
commit 48b4748277

@ -65,7 +65,7 @@ class JumpController extends HomeController
$backgroundImg = ($isHttps? 'https://': 'http://').$_SERVER['HTTP_HOST']."/Public/Qrcode/images/b1.png"; $backgroundImg = ($isHttps? 'https://': 'http://').$_SERVER['HTTP_HOST']."/Public/Qrcode/images/b1.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) { if (!$id || $id == 'undefined') {
$this->ajaxReturn([ $this->ajaxReturn([
'id' => $_REQUEST['id'], 'id' => $_REQUEST['id'],
'status' => 1, 'status' => 1,
@ -75,6 +75,14 @@ class JumpController extends HomeController
} }
// 二维码: // 二维码:
$qrcodePromotionList = M('qrcode_promotion_list', 'tab_')->where(['unique_str' => $id])->find(); $qrcodePromotionList = M('qrcode_promotion_list', 'tab_')->where(['unique_str' => $id])->find();
if (!$qrcodePromotionList) {
$this->ajaxReturn([
'id' => $_REQUEST['id'],
'status' => 1,
'background_img' => $backgroundImg,
'qrcode_img' => $qrCodeImg
]);
}
$qrcode = json_decode($qrcodePromotionList['qrcode_img'], true); $qrcode = json_decode($qrcodePromotionList['qrcode_img'], true);
$qrcodeCnt = count($qrcode); $qrcodeCnt = count($qrcode);
$intervalMin = $qrcodePromotionList['interval_min']; $intervalMin = $qrcodePromotionList['interval_min'];

Loading…
Cancel
Save