|
@@ -272,7 +272,7 @@ class CollectorService implements CollectorServiceInterface
|
|
|
*/
|
|
|
public function getOneRule(array $data): array
|
|
|
{
|
|
|
- $result = Rule::where('id',$data['id'])->first();
|
|
|
+ $result = Rule::withCount(relations:'arts')->where('id',$data['id'])->first();
|
|
|
if(empty($result)){
|
|
|
return Result::error('请输入正确的规则任务id!');
|
|
|
|