feat: 对接真实数据并移除前端假数据

本次提交完成多模块真实数据对接,移除前端硬编码假数据:
- 新增后端接口:区域列表、未读消息数、详情页评价列表、最低提现金额
- 前端对应修改:移除首页/列表/详情页硬编码区域选项、未读消息数、评价内容,分销页最低提现金额
- 修复登录页微信授权不伪造code、营业执照不伪造文件名,避免绕过校验
- 新增集成测试用例,验证真实数据对接正确性
这个提交包含在:
2026-10-19 11:48:41 +08:00
父节点 63fdfe87d7
当前提交 81a48feaad
共有 25 个文件被更改,包括 383 次插入 和 40 次删除

查看文件

@@ -16,7 +16,7 @@ class Distribution extends V1
{
/**
* D1 分销概览
* GET /api/v1/distribution/overview → {totalCommission,settled,withdrawable,todayCommission,teamCount,l1Count,l2Count,inviteCode,posterUrl}
* GET /api/v1/distribution/overview → {totalCommission,settled,withdrawable,todayCommission,teamCount,l1Count,l2Count,inviteCode,posterUrl,minWithdraw}
*/
public function overview()
{
@@ -48,6 +48,8 @@ class Distribution extends V1
'l2Count' => $l2,
'inviteCode' => (string)$ext['invite_code'],
'posterUrl' => '',
// 最低提现金额(后台「分销设置」下发,替代前端写死的 50)
'minWithdraw' => (float)$this->cfg('dist.minWithdraw', 50),
]);
}