feat: 优化消息互动中心与首页Banner呈现,同步全量业务数据与高清图标
这个提交包含在:
@@ -45,10 +45,34 @@ class OrderFulfill
|
||||
self::unlockPayView($order);
|
||||
}
|
||||
|
||||
// post 及其它类型:信息已落库,仅需结算分销
|
||||
if ($type === 'post') {
|
||||
self::fulfillPost($order);
|
||||
}
|
||||
|
||||
// 其它消费类型统一结算分销
|
||||
DistributionService::settleOrder($order);
|
||||
}
|
||||
|
||||
/**
|
||||
* 付费发帖支付成功后激活支付状态
|
||||
* 将 fc_post 的 is_paid 置为 1,确保未付款信息不会流出展示
|
||||
*
|
||||
* @param array $order
|
||||
* @return void
|
||||
*/
|
||||
protected static function fulfillPost(array $order)
|
||||
{
|
||||
$postId = (int)(isset($order['related_id']) ? $order['related_id'] : 0);
|
||||
if ($postId <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
Db::name('fc_post')->where('id', $postId)->update([
|
||||
'is_paid' => 1,
|
||||
'updatetime' => time(),
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 付费查看解锁(user_id + post_id 唯一索引保证幂等)
|
||||
*
|
||||
|
||||
在新工单中引用
屏蔽一个用户