Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop
This commit is contained in:
commit
4b7f920b5a
|
@ -174,6 +174,7 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us
|
||||||
resLogoStandard, err := l.svcCtx.Repositories.ImageHandle.LogoInfoSet(l.ctx, &repositories.LogoInfoSetReq{
|
resLogoStandard, err := l.svcCtx.Repositories.ImageHandle.LogoInfoSet(l.ctx, &repositories.LogoInfoSetReq{
|
||||||
LogoUrl: logoUrl,
|
LogoUrl: logoUrl,
|
||||||
Version: l.svcCtx.Config.BLMService.Version,
|
Version: l.svcCtx.Config.BLMService.Version,
|
||||||
|
Debug: userinfo.Debug,
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -68,8 +68,9 @@ type (
|
||||||
/* logo信息 */
|
/* logo信息 */
|
||||||
type (
|
type (
|
||||||
LogoInfoSetReq struct {
|
LogoInfoSetReq struct {
|
||||||
LogoUrl string `json:"logo_url"`
|
LogoUrl string `json:"logo_url"`
|
||||||
Version string `json:"version"`
|
Version string `json:"version"`
|
||||||
|
Debug *auth.Debug `json:"debug"`
|
||||||
}
|
}
|
||||||
LogoInfoSetRes struct {
|
LogoInfoSetRes struct {
|
||||||
Res string `json:"res"`
|
Res string `json:"res"`
|
||||||
|
@ -90,6 +91,10 @@ func (l *defaultImageHandle) LogoInfoSet(ctx context.Context, in *LogoInfoSetReq
|
||||||
postMap["logo_url"] = in.LogoUrl
|
postMap["logo_url"] = in.LogoUrl
|
||||||
postMap["version"] = in.Version
|
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())
|
logc.Infof(ctx, "算法请求--LOGO基础信息--开始时间:%v", time.Now().UTC())
|
||||||
err := curl.NewClient(ctx, &curl.Config{
|
err := curl.NewClient(ctx, &curl.Config{
|
||||||
BaseUrl: bLMServicePort,
|
BaseUrl: bLMServicePort,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user