Merge branch 'feat/1.0.4/comment' into test

This commit is contained in:
aichy126
2023-01-30 16:45:50 +08:00
4 changed files with 1 additions and 17 deletions
-5
View File
@@ -7510,11 +7510,6 @@ const docTemplate = `{
"type": "string",
"maxLength": 4096
},
"bio_html": {
"description": "bio",
"type": "string",
"maxLength": 4096
},
"display_name": {
"description": "display_name",
"type": "string",
-5
View File
@@ -7498,11 +7498,6 @@
"type": "string",
"maxLength": 4096
},
"bio_html": {
"description": "bio",
"type": "string",
"maxLength": 4096
},
"display_name": {
"description": "display_name",
"type": "string",
-4
View File
@@ -1589,10 +1589,6 @@ definitions:
description: bio
maxLength: 4096
type: string
bio_html:
description: bio
maxLength: 4096
type: string
display_name:
description: display_name
maxLength: 30
+1 -3
View File
@@ -25,7 +25,6 @@ import (
type TemplateController struct {
scriptPath string
cssPath string
Version string
templateRenderController *templaterender.TemplateRenderController
siteInfoService *siteinfo_common.SiteInfoCommonService
}
@@ -39,7 +38,6 @@ func NewTemplateController(
return &TemplateController{
scriptPath: script,
cssPath: css,
Version: constant.Version,
templateRenderController: templateRenderController,
siteInfoService: siteInfoService,
}
@@ -448,7 +446,7 @@ func (tc *TemplateController) html(ctx *gin.Context, code int, tpl string, siteI
data["HeadCode"] = siteInfo.CustomCssHtml.CustomHead
data["HeaderCode"] = siteInfo.CustomCssHtml.CustomHeader
data["FooterCode"] = siteInfo.CustomCssHtml.CustomFooter
data["Version"] = tc.Version
data["Version"] = constant.Version
_, ok := data["path"]
if !ok {
data["path"] = ""