Compare commits

...

2 Commits

Author SHA1 Message Date
lzh
36c32752f9 Merge branch 'dev-lzh-0905' into dev 2025-10-17 15:41:07 +08:00
lzh
03058ac4e4 1 2025-10-17 15:41:00 +08:00

View File

@ -291,7 +291,14 @@ func BundleExport(ctx *gin.Context) {
service.Error(ctx, err)
return
}
var exportUrl string = fmt.Sprintf("%s:%s/api/fiee/static/%s",ctx.Request.URL.Scheme, ctx.Request.Host,strings.Replace(filePath, "./runtime/", "", 1))
var scheme string
if ctx.GetHeader("X-Forwarded-Proto") == "https" {
scheme = "https"
} else {
scheme = "http"
}
var exportUrl string = fmt.Sprintf("%s:%s/api/fiee/static/%s", scheme, ctx.Request.Host, strings.Replace(filePath, "./runtime/", "", 1))
service.Success(ctx, gin.H{
"url": exportUrl,
})
@ -361,7 +368,7 @@ func writeToExcel(filename string, items []*bundle.BundleBalanceExportItem) erro
}
// 基本信息
_ = write(1, int(it.Month))
_ = write(1, it.Month)
_ = write(2, it.CustomerNum)
_ = write(3, it.UserName)
_ = write(4, it.UserPhoneNumber)