Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenhan wang
pastebin
Commits
894f80cb
Commit
894f80cb
authored
Feb 13, 2023
by
lytzjzxr
Browse files
fix:Add highlighted information to the database
parent
033d0096
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/model/init.go
View file @
894f80cb
...
...
@@ -130,15 +130,13 @@ func Find1(_url string, key string) string {
return
""
}
// 通过url查询文件是否高亮
//
通过url查询文件是否高亮
func
Find2
(
_url
string
)
bool
{
var
p
Content
DB
.
First
(
&
p
,
"Url1 = ?"
,
_url
)
return
p
.
Hlight
}
//var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789")
/*//*随机生成字符串
func randStr(n int) string {
rand.Seed(time.Now().Unix())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment