Updata:修正艺人账号数据导出报错
This commit is contained in:
parent
032a28a86b
commit
2a48980e57
@ -161,7 +161,12 @@ func MetricsArtistAccountExport(ctx *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
userInfo := login.GetUserInfoFromC(ctx)
|
userInfo := login.GetUserInfoFromC(ctx)
|
||||||
exportFileName := "艺人账号" + req.Month + ".xlsx"
|
var exportFileName string
|
||||||
|
if req.Month != "" {
|
||||||
|
exportFileName = "艺人账号" + req.Month + ".xlsx"
|
||||||
|
} else {
|
||||||
|
exportFileName = "艺人账号.xlsx"
|
||||||
|
}
|
||||||
filePath := fmt.Sprintf("./runtime/%d/%s", userInfo.ID, exportFileName)
|
filePath := fmt.Sprintf("./runtime/%d/%s", userInfo.ID, exportFileName)
|
||||||
utils.CheckDirPath("./runtime/"+fmt.Sprint(userInfo.ID), true)
|
utils.CheckDirPath("./runtime/"+fmt.Sprint(userInfo.ID), true)
|
||||||
sheet := "Sheet1"
|
sheet := "Sheet1"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user