feat:合图新增debug模块

This commit is contained in:
momo
2023-10-18 14:01:46 +08:00
parent f0e50d3cd2
commit e94917a9d2
2 changed files with 8 additions and 2 deletions

View File

@@ -68,8 +68,9 @@ type (
/* logo信息 */
type (
LogoInfoSetReq struct {
LogoUrl string `json:"logo_url"`
Version string `json:"version"`
LogoUrl string `json:"logo_url"`
Version string `json:"version"`
Debug *auth.Debug `json:"debug"`
}
LogoInfoSetRes struct {
Res string `json:"res"`
@@ -90,6 +91,10 @@ func (l *defaultImageHandle) LogoInfoSet(ctx context.Context, in *LogoInfoSetReq
postMap["logo_url"] = in.LogoUrl
postMap["version"] = in.Version
if in.Debug != nil && in.Debug.IsAllTemplateTag == 1 {
postMap["is_all_template"] = "1"
}
logc.Infof(ctx, "算法请求--LOGO基础信息--开始时间:%v", time.Now().UTC())
err := curl.NewClient(ctx, &curl.Config{
BaseUrl: bLMServicePort,