必填验证
This commit is contained in:
@@ -184,16 +184,7 @@ class Wechat
|
|||||||
if(empty($iArticleId)){
|
if(empty($iArticleId)){
|
||||||
return json_encode(['status' => 2,'msg' => 'article_id is empty']);
|
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'];
|
$sContent = empty($aParam['content']) ? '' : $aParam['content'];
|
||||||
if(empty($sContent)){
|
if(empty($sContent)){
|
||||||
|
|||||||
Reference in New Issue
Block a user