From 84e0f9eac1b9645a40dc65029ddb2d7b35998a54 Mon Sep 17 00:00:00 2001 From: kongyuebin <447206051@qq.com> Date: Thu, 9 Jan 2020 09:51:22 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jhagent/controllers/deal_excel.go b/jhagent/controllers/deal_excel.go index a683e80..a54541a 100644 --- a/jhagent/controllers/deal_excel.go +++ b/jhagent/controllers/deal_excel.go @@ -11,6 +11,7 @@ package controllers import ( "fmt" + "github.com/astaxie/beego/logs" "github.com/tealeg/xlsx" "dongfeng-pay/jhagent/sys/enum" "dongfeng-pay/jhagent/utils" @@ -172,7 +173,7 @@ func (c *DealExcel) DownloadRecordExcel() { defer func() { if r := recover(); r != nil { - sys.LogEmergency(file + " 此文件不存在!") + logs.Error(fmt.Sprintf("%s此文件不存在", file)) time.Sleep(3 * time.Second) } }()