diff --git a/main_program/main.go b/main_program/main.go index dc14c5a..602334d 100644 --- a/main_program/main.go +++ b/main_program/main.go @@ -47,7 +47,6 @@ func main() { if common.Dbpath != "" { dbPath = common.Dbpath } - // "D:/Work/Code/youtube_dev/youtube-golang/main_program/moveData/channel_region.xlsx" xlsxPath := common.MyEnv.MoveData.XlsxPath if common.XlsxPath != "" { xlsxPath = common.XlsxPath diff --git a/main_program/moveData/moveDataService.go b/main_program/moveData/moveDataService.go index 9b65103..01e56f9 100644 --- a/main_program/moveData/moveDataService.go +++ b/main_program/moveData/moveDataService.go @@ -36,7 +36,7 @@ func (m *moveDataService) Start(table string, sqlitePath string, mysqlConfig con config.Logger.Error("xlsxPath not existx...") return } - m.moveChannel(sqliteDB, mysqlDB, "D:/Work/Code/youtube_dev/youtube-golang/main_program/moveData/channel_region.xlsx") + m.moveChannel(sqliteDB, mysqlDB, xlsxPath) } else if table == "Videos" { m.moveVideos(sqliteDB, mysqlDB) } else if table == "DownLoadInfo" {