问题: 盈亏分析(GetUserProfitLossTrend)和用户画像(GetUserProfile)中的 "商品产出"查询条件为 `ui.status = 1`,只统计了待发货/库存中的商品, 已发货/已兑换(status=3)的商品被完全排除。 示例:用户9110实际累计获得874件商品(价值¥16,279.40),但因为大部分 已发货(status=3),盈亏分析只显示商品产出¥12.50,全资产产出严重偏低。 而 dashboard_user_spending.go 中的同类查询正确使用了 `status IN (1, 3)`,说明此处是遗漏。 修复: - users_profit_loss.go: 当前资产快照查询改为 `status IN (1, 3)` - users_profile.go: 库存统计查询改为 `status IN (1, 3)` - 与 dashboard_user_spending.go 的计算口径对齐
mini-chat
接口文档
服务地址
打包命令
MAC
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -tags timetzdata -trimpath -o build/bindbox.exe .
export DOCKER_DEFAULT_PLATFORM=linux/amd64 docker build -t zfc931912343/bindbox-game:v1.10 . docker push zfc931912343/bindbox-game:v1.10
docker pull zfc931912343/bindbox-game:v1.10 &&docker rm -f bindbox-game && docker run -d --name bindbox-game -p 9991:9991 zfc931912343/bindbox-game:v1.10
Description
Languages
Go
97.8%
HTML
1.1%
JavaScript
0.6%
Makefile
0.2%
Shell
0.2%