处理依赖

This commit is contained in:
kongyuebin 2020-01-09 09:53:38 +08:00
parent a05cdcfa81
commit 10ad6bd6ae

View File

@ -10,14 +10,13 @@
package controllers package controllers
import ( import (
"fmt"
"github.com/astaxie/beego/logs"
"github.com/tealeg/xlsx"
"dongfeng-pay/jhagent/sys/enum" "dongfeng-pay/jhagent/sys/enum"
"dongfeng-pay/jhagent/utils" "dongfeng-pay/jhagent/utils"
"dongfeng-pay/service/models" "dongfeng-pay/service/models"
"fmt"
"github.com/astaxie/beego/logs"
"github.com/tealeg/xlsx"
"os" "os"
"recharge/sys"
"strings" "strings"
"time" "time"
) )
@ -174,8 +173,7 @@ func (c *DealExcel) DownloadRecordExcel() {
defer func() { defer func() {
if r := recover(); r != nil { if r := recover(); r != nil {
logs.Error(fmt.Sprintf("%s此文件不存在", file)) logs.Error(fmt.Sprintf("%s此文件不存在", file))
time.Sleep(3 * time.Second) time.Sleep(3 * time.Second)}
}
}() }()
// 删除临时文件 // 删除临时文件
go func() { go func() {