|
@@ -31,13 +31,16 @@ type OuterReportCallBackResp struct {
|
|
|
|
|
|
// OuterReportCallBack 外部报告回调(提交审批)
|
|
|
func OuterReportCallBack(outReportId int, title, fileUrl, fileType string) (err error) {
|
|
|
+ var requestUrl string
|
|
|
var params string
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
- tips := fmt.Sprintf("OuterReportCallBack-外部报告回调失败, Request: %s, ErrMsg: %v", params, err)
|
|
|
+ tips := fmt.Sprintf("OuterReportCallBack-外部报告回调失败, Url: %s, Request: %s, ErrMsg: %v", requestUrl, params, err)
|
|
|
fmt.Println(tips)
|
|
|
utils.FileLog.Info(tips)
|
|
|
+ return
|
|
|
}
|
|
|
+ utils.FileLog.Info("OuterReportCallBack-回调成功")
|
|
|
}()
|
|
|
|
|
|
// 入参
|
|
@@ -66,7 +69,7 @@ func OuterReportCallBack(outReportId int, title, fileUrl, fileType string) (err
|
|
|
err = fmt.Errorf("外部报告API地址为空")
|
|
|
return
|
|
|
}
|
|
|
- requestUrl := conf.ConfVal + OuterReportCallBackApiUrl
|
|
|
+ requestUrl = conf.ConfVal + OuterReportCallBackApiUrl
|
|
|
|
|
|
// 请求接口
|
|
|
resByte, e := OuterReportCallBackPost(requestUrl, params, "application/json")
|