From bee8546f4592c7e1c9b8503a2deb06b27bdd9cd1 Mon Sep 17 00:00:00 2001 From: chengxl Date: Thu, 29 May 2025 13:51:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=85=E5=A1=AB=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/Wechat.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/application/common/Wechat.php b/application/common/Wechat.php index 5c1dcd9..9b1b905 100644 --- a/application/common/Wechat.php +++ b/application/common/Wechat.php @@ -184,16 +184,7 @@ class Wechat if(empty($iArticleId)){ return json_encode(['status' => 2,'msg' => 'article_id is empty']); } - //模版ID - $iTemplateId = empty($aParam['template_id']) ? '' : $aParam['template_id']; - if(empty($iTemplateId)){ - return json_encode(['status' => 2,'msg' => 'Template ID is empty']); - } - // //发布公众号ID - // $sWechatId = empty($aParam['wechat_id']) ? 0 : $aParam['wechat_id']; - // if(empty($sWechatId)){ - // return json_encode(['status' => 2,'msg' => 'Please select the official account to be pushed']); - // } + //生成模版内容 $sContent = empty($aParam['content']) ? '' : $aParam['content']; if(empty($sContent)){