微信公众号推送文章相关接口调整

This commit is contained in:
chengxl
2025-05-19 11:55:20 +08:00
parent ed84ad7477
commit 6168790573
2 changed files with 61 additions and 36 deletions

View File

@@ -190,11 +190,11 @@ class Wechat
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']);
}
// //发布公众号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)){