feat: 优化消息互动中心与首页Banner呈现,同步全量业务数据与高清图标
这个提交包含在:
@@ -222,6 +222,14 @@ class Home extends V1
|
||||
};
|
||||
$applyArea($query);
|
||||
|
||||
// 付费发帖拦截:未付清款项的帖子(微信支付待付款)严禁向外展示
|
||||
$applyPaid = function ($q) {
|
||||
$q->where(function ($w) {
|
||||
$w->where('amount', 'null')->whereOr('amount', '<=', 0)->whereOr('is_paid', 1);
|
||||
});
|
||||
};
|
||||
$applyPaid($query);
|
||||
|
||||
$counter = Db::name('fc_post')
|
||||
->where('audit_status', 1)
|
||||
->where('status', 1)
|
||||
@@ -233,6 +241,7 @@ class Home extends V1
|
||||
$counter->where('title', 'like', '%' . $keyword . '%');
|
||||
}
|
||||
$applyArea($counter);
|
||||
$applyPaid($counter);
|
||||
$total = $counter->count();
|
||||
|
||||
// 「附近」:距离在 PHP 内用 Haversine 计算后排序(不用 SQL 距离函数,避免 MySQL 兼容问题);
|
||||
|
||||
在新工单中引用
屏蔽一个用户