朋友圈采集优化

This commit is contained in:
wong
2025-11-24 11:03:31 +08:00
parent 4140e6d3d7
commit 30b33ec974
2 changed files with 8 additions and 12 deletions

View File

@@ -1070,7 +1070,7 @@ class ContentLibraryController extends Controller
->select()->toArray();
if (empty($libraries)) {
return json(['code' => 200, 'msg' => '没有可用的内容库配置']);
return json_encode(['code' => 200, 'msg' => '没有可用的内容库配置'],256);
}
$successCount = 0;
@@ -1159,7 +1159,7 @@ class ContentLibraryController extends Controller
}
// 返回采集结果
return json([
return json_encode([
'code' => 200,
'msg' => '采集任务执行完成',
'data' => [
@@ -1169,7 +1169,7 @@ class ContentLibraryController extends Controller
'skipped' => $totalLibraries - $successCount - $failCount,
'results' => $results
]
]);
],256);
}
/**
@@ -1206,7 +1206,7 @@ class ContentLibraryController extends Controller
->whereIn('id', $friendIds)
->where('isDeleted', 0)
->select();
if (empty($friends)) {
return [
'status' => 'failed',