海报小程序相关代码提交

This commit is contained in:
wong
2025-07-10 14:07:11 +08:00
parent 4ca6ff247b
commit 0bbb9c1273
4 changed files with 28 additions and 11 deletions

View File

@@ -419,7 +419,7 @@ class ContentLibraryController extends Controller
// 查询数据
$list = ContentItem::where($where)
->order('createTime', 'desc')
->order('createMomentTime DESC,createTime DESC')
->page($page, $limit)
->select();
@@ -763,7 +763,6 @@ class ContentLibraryController extends Controller
$where = [
['isDel', '=', 0], // 未删除
['status', '=', 1], // 已开启
['id', '=', 27]
];
// 查询符合条件的内容库
@@ -1405,10 +1404,10 @@ class ContentLibraryController extends Controller
$coverImage = $resUrls[0];
}
// 判断内容类型 (0=未知, 1=图片, 2=链接, 3=视频, 4=文本, 5=小程序, 6=图文)
// 判断内容类型 (0=未知, 1=图片, 2=链接, 3=视频, 4=文本, 5=小程序)
if($moment['type'] == 1) {
//图文
$contentType = 6;
$contentType = 1;
}elseif ($moment['type'] == 3){
//链接
$contentType = 2;