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