码图原先落在 qrcode 私有目录且返回相对路径,后台无法统一管理、 换部署域名还要改数据。现迁到图片库 manifest/static/qrcode/, 与头像/封面/附件共用同一套 /static 路由,并登记附件表 (scene=qrcode)使后台附件管理可统一查看管理。 库内仍只存相对路径、域名由 absoluteURL 按配置统一拼,与既有 约定一致;按内容 md5 命名,重复生成同一张码不新增文件。 活动码与项目绑定码共用 saveQrcodeImage helper。 另修正 .gitignore 漏掉的仓库根二进制(go build -o 的产物)。
28 lines
576 B
Go
28 lines
576 B
Go
.buildpath
|
||
.hgignore.swp
|
||
.project
|
||
.orig
|
||
.swp
|
||
.idea/
|
||
.settings/
|
||
.vscode/
|
||
bin/
|
||
**/.DS_Store
|
||
gf
|
||
main
|
||
main.exe
|
||
# go build -o 直接落在仓库根的二进制(无扩展名,如 nl-qtx-api)
|
||
/nl-*
|
||
/tool-api
|
||
*.exe
|
||
output/
|
||
manifest/output/
|
||
# 运行时日志(由 manifest/config/config.yaml 的 logger.path 指定)
|
||
manifest/logs/
|
||
# go test 在包目录下运行时,logger.path 相对 cwd 生成的日志目录(如 internal/logic/manifest/logs/)
|
||
**/manifest/logs/
|
||
temp/
|
||
temp.yaml
|
||
bin
|
||
# 环境配置(含 OfferID / AppKey 等密钥,切勿提交)
|
||
**/config/config.yaml |