|
|
|
@ -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
|
|
|
|
|
]);
|
|
|
|
|