|
@@ -787,6 +787,7 @@ class CollectorService implements CollectorServiceInterface
|
|
*/
|
|
*/
|
|
public function addCatid(array $data): array
|
|
public function addCatid(array $data): array
|
|
{
|
|
{
|
|
|
|
+
|
|
$id = $data['rule_id'];
|
|
$id = $data['rule_id'];
|
|
$art = Article::where('rule_id',$id)->select('id')->count();
|
|
$art = Article::where('rule_id',$id)->select('id')->count();
|
|
if($art==0){
|
|
if($art==0){
|
|
@@ -837,6 +838,7 @@ class CollectorService implements CollectorServiceInterface
|
|
}
|
|
}
|
|
// return Result::success($result);
|
|
// return Result::success($result);
|
|
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 导入文章(生产者)
|
|
* 导入文章(生产者)
|