From 10ad6bd6ae6472c39e19c4ee949e46649eb999ef Mon Sep 17 00:00:00 2001 From: kongyuebin <447206051@qq.com> Date: Thu, 9 Jan 2020 09:53:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jhagent/controllers/deal_excel.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/jhagent/controllers/deal_excel.go b/jhagent/controllers/deal_excel.go index a54541a..62e6655 100644 --- a/jhagent/controllers/deal_excel.go +++ b/jhagent/controllers/deal_excel.go @@ -10,14 +10,13 @@ package controllers import ( - "fmt" - "github.com/astaxie/beego/logs" - "github.com/tealeg/xlsx" "dongfeng-pay/jhagent/sys/enum" "dongfeng-pay/jhagent/utils" "dongfeng-pay/service/models" + "fmt" + "github.com/astaxie/beego/logs" + "github.com/tealeg/xlsx" "os" - "recharge/sys" "strings" "time" ) @@ -174,8 +173,7 @@ func (c *DealExcel) DownloadRecordExcel() { defer func() { if r := recover(); r != nil { logs.Error(fmt.Sprintf("%s此文件不存在", file)) - time.Sleep(3 * time.Second) - } + time.Sleep(3 * time.Second)} }() // 删除临时文件 go func() {