This commit is contained in:
wangjinlei
2025-02-11 09:19:24 +08:00
parent fb647bd6fa
commit aff3123377
6 changed files with 68 additions and 13 deletions

View File

@@ -180,7 +180,15 @@ class Publish extends Base
$pra = [];
$pra['article_id'] = $data['article_id'];
$res = object_to_array(json_decode(myPost($url, $pra)));
$re['detail'] = $res['data']["detail"];
$detail = $res['data']["detail"];
if($detail['html_type']==2){
$product = $this->production_article_obj->where("w_article_id",$data['article_id'])->find();
$check = $this->article_main_obj->where("article_id",$product['article_id'])->find();
$detail['has_html'] = $check?1:0;
}
$re['detail'] = $detail;
return jsonSuccess($re);
}