From 8d95d5423107dbc91c983dd5ffa3883ab981ba5e Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Mon, 24 Oct 2022 11:51:18 +0800 Subject: [PATCH] edit-sylive-template_id --- home/controllers/h5/market/sylive/Act.php | 5 +++-- home/views/h5/market/sylive/act/index.php | 14 ++------------ 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/home/controllers/h5/market/sylive/Act.php b/home/controllers/h5/market/sylive/Act.php index 347af1c1..276cdd78 100644 --- a/home/controllers/h5/market/sylive/Act.php +++ b/home/controllers/h5/market/sylive/Act.php @@ -7,6 +7,7 @@ class Act extends Wx { private $group_id; private $secretkey = '7a23vx9257'; private $item_banner = ['https://qs.haodian.cn/web/images/project/H5-ShiYu/goods.jpg']; + private $template_id = 'DO0B9IYYub1d0oNvy9czzGbe6_1EU8PQmnLEoDOcmXA'; public function __construct(){ parent::__construct(); @@ -58,7 +59,7 @@ class Act extends Wx { $config = $this->config->item('hdy'); $sub_redirect_url = urlencode(http_host_com('home') . '/h5/market/sylive/act/subscribemsg?skey=' . $skey . '&s_time=' . $row['timeStart']); - $subscribemsg = "https://mp.weixin.qq.com/mp/subscribemsg?action=get_confirm&appid={$config['appid']}&scene=0&template_id=DO0B9IYYub1d0oNvy9czzGbe6_1EU8PQmnLEoDOcmXA&redirect_url={$sub_redirect_url}&reserved=test#wechat_redirect"; + $subscribemsg = "https://mp.weixin.qq.com/mp/subscribemsg?action=get_confirm&appid={$config['appid']}&scene=0&template_id={$this->template_id}&redirect_url={$sub_redirect_url}&reserved=test#wechat_redirect"; } } //浏览 @@ -433,7 +434,7 @@ class Act extends Wx { $config = $this->config->item('hdy'); $sub_redirect_url = urlencode(http_host_com('home') . '/h5/market/sylive/act/subscribemsg?skey=' . $skey . '&s_time=' . $row['timeStart']); - $subscribemsg = "https://mp.weixin.qq.com/mp/subscribemsg?action=get_confirm&appid={$config['appid']}&scene=0&template_id=sdJ4eXXA3OdMZVkJdOrzusYLGr0Jpz9I7WiZurgGLBs&redirect_url={$sub_redirect_url}&reserved=test#wechat_redirect"; + $subscribemsg = "https://mp.weixin.qq.com/mp/subscribemsg?action=get_confirm&appid={$config['appid']}&scene=0&template_id={$this->template_id}&redirect_url={$sub_redirect_url}&reserved=test#wechat_redirect"; redirect($subscribemsg); }else{ $user = $this->user_model->get(['userId'=>$this->uid],'unionid,nickname,headimg'); diff --git a/home/views/h5/market/sylive/act/index.php b/home/views/h5/market/sylive/act/index.php index 00d0c47b..55373de7 100644 --- a/home/views/h5/market/sylive/act/index.php +++ b/home/views/h5/market/sylive/act/index.php @@ -2,24 +2,14 @@
-
+
+ # -
-
- -