mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2024-11-25 11:49:26 +08:00
处理依赖
This commit is contained in:
parent
a05cdcfa81
commit
10ad6bd6ae
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user