健康分功能提交 + 微信客服页面改版
This commit is contained in:
@@ -1061,6 +1061,7 @@ class ContentLibraryController extends Controller
|
||||
$where = [
|
||||
['isDel', '=', 0], // 未删除
|
||||
['status', '=', 1], // 已开启
|
||||
['id', '=', 99], // 已开启
|
||||
];
|
||||
|
||||
// 查询符合条件的内容库
|
||||
@@ -1225,7 +1226,7 @@ class ContentLibraryController extends Controller
|
||||
|
||||
foreach ($friends as $friend) {
|
||||
$processedFriends++;
|
||||
|
||||
|
||||
// 如果配置了API并且需要主动获取朋友圈
|
||||
if ($needFetch) {
|
||||
try {
|
||||
@@ -1264,9 +1265,9 @@ class ContentLibraryController extends Controller
|
||||
}
|
||||
|
||||
// 如果指定了采集类型,进行过滤
|
||||
if (!empty($catchTypes)) {
|
||||
/*if (!empty($catchTypes)) {
|
||||
$query->whereIn('type', $catchTypes);
|
||||
}
|
||||
}*/
|
||||
|
||||
// 获取最近20条朋友圈
|
||||
$moments = $query->page(1, 20)->select();
|
||||
@@ -1289,7 +1290,7 @@ class ContentLibraryController extends Controller
|
||||
continue;
|
||||
}
|
||||
|
||||
// 如果启用了AI处理
|
||||
/* // 如果启用了AI处理
|
||||
if (!empty($library['aiEnabled']) && !empty($content)) {
|
||||
try {
|
||||
$contentAi = $this->aiRewrite($library, $content);
|
||||
@@ -1300,7 +1301,7 @@ class ContentLibraryController extends Controller
|
||||
\think\facade\Log::error('AI处理失败: ' . $e->getMessage() . ' [朋友圈ID: ' . ($moment['id'] ?? 'unknown') . ']');
|
||||
$moment['contentAi'] = '';
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
// 保存到内容库的content_item表
|
||||
if ($this->saveMomentToContentItem($moment, $library['id'], $friend, $nickname)) {
|
||||
|
||||
Reference in New Issue
Block a user