1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user