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)){