必填验证

This commit is contained in:
chengxl
2025-05-29 13:51:25 +08:00
parent bbcbf590c1
commit bee8546f45

View File

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