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 @@