Browse Source

Merge branch 'pool_mt'

# Conflicts:
#	services/commodity_coal_inland.go
ziwen 2 years ago
parent
commit
e842ebb6e8
1 changed files with 5 additions and 1 deletions
  1. 5 1
      services/commodity_coal_inland.go

+ 5 - 1
services/commodity_coal_inland.go

@@ -56,7 +56,11 @@ func FileCoalInland() () {
 	if !exist{
 		path = "/home/code/python/coal_mail/emailFile/内陆17省动力煤终端用户供耗存.xlsx"
 	}
-
+	exist,err = PathExists(path)
+	if err != nil {
+		fmt.Println(err)
+		return
+	}
 	var xlFile *xlsx.File
 	if exist {
 		xlFile, err = xlsx.OpenFile(path)