朋友圈采集修复链接没有标题问题

This commit is contained in:
wong
2025-07-29 10:47:02 +08:00
parent 7b34feabc6
commit 9726518a46
2 changed files with 8 additions and 8 deletions

View File

@@ -821,6 +821,7 @@ class ContentLibraryController extends Controller
$where = [
['isDel', '=', 0], // 未删除
['status', '=', 1], // 已开启
['id', '=', 61], // 已开启
];
// 查询符合条件的内容库
@@ -832,7 +833,6 @@ class ContentLibraryController extends Controller
if (empty($libraries)) {
return json(['code' => 200, 'msg' => '没有可用的内容库配置']);
}
$successCount = 0;
$failCount = 0;
$results = [];
@@ -964,7 +964,6 @@ class ContentLibraryController extends Controller
$automaticAssign->allotWechatFriend(['wechatFriendId' => $friend['id'], 'toAccountId' => $friend['accountId']], true);
}
// 从s2_wechat_moments表获取朋友圈数据
$moments = Db::table('s2_wechat_moments')
->where([
@@ -1512,7 +1511,7 @@ class ContentLibraryController extends Controller
}else{
$coverImage = 'http://karuosiyujzk.oss-cn-shenzhen.aliyuncs.com/2025/07/09/ec039d96fad6eab1d960f207d3d9ca9f.jpeg';
}
$urls[] = [
'url' => $url,
'image' => !empty($moment['coverImage']) ? $moment['coverImage'] : $coverImage,