fix: 优化配置和API处理逻辑
This commit is contained in:
parent
59a7d1c7a5
commit
531facbb07
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"ai_scheduler/internal/pkg"
|
"ai_scheduler/internal/pkg"
|
||||||
"ai_scheduler/internal/pkg/l_request"
|
"ai_scheduler/internal/pkg/l_request"
|
||||||
"ai_scheduler/internal/pkg/util"
|
"ai_scheduler/internal/pkg/util"
|
||||||
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/go-kratos/kratos/v2/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type StatisOursProductLossSumReq struct {
|
type StatisOursProductLossSumReq struct {
|
||||||
|
|
@ -252,6 +253,7 @@ func GetManagerAndDefaultLossReasonApi(param *GetManagerAndDefaultLossReasonRequ
|
||||||
"Authorization": fmt.Sprintf("Bearer %s", token),
|
"Authorization": fmt.Sprintf("Bearer %s", token),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
log.Debug(pkg.JsonStringIgonErr(req.Headers))
|
||||||
res, err := req.Send()
|
res, err := req.Send()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue