fix: 优化配置和API处理逻辑

This commit is contained in:
renzhiyuan 2026-01-15 14:34:46 +08:00
parent 59a7d1c7a5
commit 531facbb07
1 changed files with 3 additions and 1 deletions

View File

@ -4,13 +4,14 @@ import (
"ai_scheduler/internal/pkg"
"ai_scheduler/internal/pkg/l_request"
"ai_scheduler/internal/pkg/util"
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
"github.com/go-kratos/kratos/v2/log"
)
type StatisOursProductLossSumReq struct {
@ -252,6 +253,7 @@ func GetManagerAndDefaultLossReasonApi(param *GetManagerAndDefaultLossReasonRequ
"Authorization": fmt.Sprintf("Bearer %s", token),
},
}
log.Debug(pkg.JsonStringIgonErr(req.Headers))
res, err := req.Send()
if err != nil {
return nil, err