Skip to content

Commit

Permalink
fix(helpdoc): helpdoc xlsx 表头校验修复
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAnotherID committed Nov 16, 2023
1 parent 14a3829 commit d70feb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dice/dice_help.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func validateXlsxHeaders(headers []string) error {
if len(headers) > 3 && headers[3] != "Description" {
return fmt.Errorf("helpdoc表头格式错误,第四列表头必须是Description")
}
if len(headers) > 4 && headers[4] != "Description" {
if len(headers) > 4 && headers[4] != "Catalogue" {
return fmt.Errorf("helpdoc表头格式错误,第五列表头必须是Catalogue")
}
if len(headers) > 5 && headers[6] != "Tag" {
Expand Down

0 comments on commit d70feb8

Please sign in to comment.