|
|
|
@ -62,8 +62,9 @@ class JumpController extends HomeController
|
|
|
|
|
public function getImgs()
|
|
|
|
|
{
|
|
|
|
|
$isHttps = is_https();
|
|
|
|
|
$backgroundImg = ($isHttps? 'https://': 'http://').$_SERVER['HTTP_HOST']."/Public/Qrcode/images/b1.png";
|
|
|
|
|
$qrCodeImg = ($isHttps? 'https://': 'http://').$_SERVER['HTTP_HOST']."/Public/Qrcode/images/qrcode.png";
|
|
|
|
|
$backgroundImg = ($isHttps? 'https://': 'http://').$_SERVER['HTTP_HOST']."/Public/Qrcode/images/b3.png";
|
|
|
|
|
// $qrCodeImg = ($isHttps? 'https://': 'http://').$_SERVER['HTTP_HOST']."/Public/Qrcode/images/qrcode.png";
|
|
|
|
|
$qrCodeImg = '';
|
|
|
|
|
$id = I('request.id', '');
|
|
|
|
|
if (!$id || $id == 'undefined') {
|
|
|
|
|
$this->ajaxReturn([
|
|
|
|
@ -84,6 +85,7 @@ class JumpController extends HomeController
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
$qrcode = json_decode($qrcodePromotionList['qrcode_img'], true);
|
|
|
|
|
$qrcode = array_values($qrcode);
|
|
|
|
|
$qrcodeCnt = count($qrcode);
|
|
|
|
|
$intervalMin = $qrcodePromotionList['interval_min'];
|
|
|
|
|
$elapseMin = floor((time() - $qrcodePromotionList['create_time']) / 60);
|
|
|
|
|