同步草稿箱功能小调整
This commit is contained in:
@@ -1160,6 +1160,15 @@ class Aiarticle extends Base
|
||||
$sTemplate = "Review";
|
||||
}
|
||||
|
||||
//查询期刊微信公众号配置
|
||||
$aJournalInfo = Db::name('journal')->field('wechat_app_id,wechat_app_secret')->where('issn',$sWechatId)->find();
|
||||
if(empty($aJournalInfo['wechat_app_id']) || empty($aJournalInfo['wechat_app_secret'])){
|
||||
//获取默认配置
|
||||
$aJournalInfo = $this->aWechatConfig;
|
||||
$sWechatId = $aJournalInfo['issn'] ?? 'default';
|
||||
}
|
||||
|
||||
|
||||
//查询该模版是否推送到微信公众号
|
||||
$aWhere['wechat_id'] = $sWechatId;
|
||||
$aWhere['template_id'] = $sTemplate;
|
||||
@@ -1169,13 +1178,6 @@ class Aiarticle extends Base
|
||||
return json_encode(['status' => 4, 'msg' => 'Already uploaded to draft box']);
|
||||
}
|
||||
|
||||
//查询期刊微信公众号配置
|
||||
$aJournalInfo = Db::name('journal')->field('wechat_app_id,wechat_app_secret')->where('issn',$sWechatId)->find();
|
||||
if(empty($aJournalInfo['wechat_app_id']) || empty($aJournalInfo['wechat_app_secret'])){
|
||||
//获取默认配置
|
||||
$aJournalInfo = $this->aWechatConfig;
|
||||
$sWechatId = $aJournalInfo['issn'] ?? 'default';
|
||||
}
|
||||
|
||||
//数据处理-标题
|
||||
$sTitle = empty($aAiArticle['title']) ? '' : $aAiArticle['title'];
|
||||
|
||||
Reference in New Issue
Block a user