This commit is contained in:
wangjinlei
2023-07-14 18:23:25 +08:00
parent 3f289cebec
commit 32ae12e5b3
3 changed files with 51 additions and 3 deletions

View File

@@ -175,13 +175,18 @@ class Publish extends Base
return jsonError($rule->getError());
}
foreach ($data['contents'] as $k => $v){
//处理content
if(strlen($v)<10){
continue;
}
$content = substr($v,stripos($v,".")+1);
$insert['p_article_id'] = $data['p_article_id'];
$insert['refer_frag'] = $v;
$insert['refer_frag'] = $content;
$insert['refer_type'] = "other";
$insert['cs'] = 0;
$insert['index'] = $k;
$this->production_article_refer_obj->insert($insert);
}
$this->refuseReferIndex($data['p_article_id']);
return jsonSuccess([]);
}