Compare commits

..

No commits in common. "36c32752f96b627aa9f7208362dd2d0abbd03cd0" and "afec2dcc61d0ca48aecdf7f63fb2833556d88236" have entirely different histories.

View File

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