This commit is contained in:
wangjinlei
2025-01-17 09:46:41 +08:00
parent 4c8331ee91
commit 927ddabbf9
2 changed files with 34 additions and 30 deletions

View File

@@ -207,9 +207,22 @@ function hasHtml($article_id){
$article_obj = Db::name("article");
$article_info = $article_obj->where("article_id",$article_id)->find();
$list = $article_main_obj->where('article_id', $article_id)->where('state', 0)->where('is_add', 0)->find();
if($article_info['file_html']!=""||$article_info['html_type']==2||$list){
if($article_info['file_html']!=""||$list){
return 1;
}else{
}elseif ($article_info['html_type']==2){
if($article_id>3435){
return 1;
}else{
$url = "http://api.tmrjournals.com/public/index.php/api/Web/checkArticleMain";
$program['article_id'] = $article_id;
$res = object_to_array(json_decode(myPost($url, $program)));
if(isset($res['data']['check'])){
return $res['data']['check'];
}else{
return 0;
}
}
} else{
return 0;
}
}