From 5db39d8cbfe5513f02b6aa98936d76529931e1c8 Mon Sep 17 00:00:00 2001 From: tping Date: Wed, 8 Sep 2021 16:59:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/QrCodePromotionController.class.php | 3 ++- .../Qrcode/View/default/QrCodePromotion/linkAdd.html | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Application/Qrcode/Controller/QrCodePromotionController.class.php b/Application/Qrcode/Controller/QrCodePromotionController.class.php index 6b853011d..fc9c8ee7d 100644 --- a/Application/Qrcode/Controller/QrCodePromotionController.class.php +++ b/Application/Qrcode/Controller/QrCodePromotionController.class.php @@ -204,10 +204,11 @@ class QrCodePromotionController extends BaseController if ($id > 0) { $uniqueStr = $this->getUniqueStr(); $h5Link = ($isHttps? 'https://': 'http://').$_SERVER['HTTP_HOST']."/index.php?s=/Qrcode/Jump/jumpMp/{$uniqueStr}"; - $expireDate = date('Y-m-d', strtotime("+90 day")); + $expireDate = date('Y-m-d', strtotime("+30 day")); $shortLink = $this->getShortUrl($h5Link, $expireDate); M('qrcode_promotion_list', 'tab_')->where(['id' => $id])->save([ + 'unique_str' => $uniqueStr, 'h5_link' => $h5Link, 'short_link' => $shortLink ]); diff --git a/Application/Qrcode/View/default/QrCodePromotion/linkAdd.html b/Application/Qrcode/View/default/QrCodePromotion/linkAdd.html index 26e45f4f3..706b9ffb7 100644 --- a/Application/Qrcode/View/default/QrCodePromotion/linkAdd.html +++ b/Application/Qrcode/View/default/QrCodePromotion/linkAdd.html @@ -53,6 +53,7 @@