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