|
@@ -9,10 +9,6 @@ import (
|
|
|
"eta/eta_api/services/data"
|
|
|
"eta/eta_api/utils"
|
|
|
"fmt"
|
|
|
- "github.com/beego/beego/v2/server/web"
|
|
|
- "github.com/h2non/filetype"
|
|
|
- "github.com/rdlucklib/rdluck_tools/paging"
|
|
|
- "github.com/tealeg/xlsx"
|
|
|
"html"
|
|
|
"io/ioutil"
|
|
|
"os"
|
|
@@ -21,6 +17,11 @@ import (
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
"time"
|
|
|
+
|
|
|
+ "github.com/beego/beego/v2/server/web"
|
|
|
+ "github.com/h2non/filetype"
|
|
|
+ "github.com/rdlucklib/rdluck_tools/paging"
|
|
|
+ "github.com/tealeg/xlsx"
|
|
|
)
|
|
|
|
|
|
// ReportController 报告
|
|
@@ -3294,12 +3295,7 @@ func (this *ReportController) SendMsg() {
|
|
|
br.ErrMsg = "参数解析失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- if utils.BusinessCode != utils.BusinessCodeRelease && utils.BusinessCode != utils.BusinessCodeSandbox && utils.BusinessCode != utils.BusinessCodeDebug {
|
|
|
- br.Ret = 200
|
|
|
- br.Success = true
|
|
|
- br.Msg = "操作成功"
|
|
|
- return
|
|
|
- }
|
|
|
+
|
|
|
if req.ReportId <= 0 {
|
|
|
br.Msg = "参数错误"
|
|
|
br.ErrMsg = "参数错误"
|