Commit 894f80cb authored by lytzjzxr's avatar lytzjzxr
Browse files

fix:Add highlighted information to the database

parent 033d0096
......@@ -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())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment