MCPcopy Index your code
hub / github.com/TruthHun/DocHub / IsIllegal

Method IsIllegal

models/DocumentModel.go:162–168  ·  view source on GitHub ↗

根据md5判断文档是否是非法文档,如果是非法文档,则返回true @param md5 md5 @return bool 如果文档存在于非法文档表中,则表示文档非法,否则合法

(md5 string)

Source from the content-addressed store, hash-verified

160//@param md5 md5
161//@return bool 如果文档存在于非法文档表中,则表示文档非法,否则合法
162func (this *Document) IsIllegal(md5 string) bool {
163 var ilg DocumentIllegal
164 if orm.NewOrm().QueryTable(GetTableDocumentIllegal()).Filter("Md5", md5).One(&ilg); ilg.Id > 0 {
165 return true
166 }
167 return false
168}
169
170//根据md5判断文档是否是非法文档,如果是非法文档,则返回true
171//@param id 文档id

Callers 1

DocumentProcessFunction · 0.80

Calls 2

GetTableDocumentIllegalFunction · 0.85
OneMethod · 0.80

Tested by

no test coverage detected