根据md5判断文档是否是非法文档,如果是非法文档,则返回true @param md5 md5 @return bool 如果文档存在于非法文档表中,则表示文档非法,否则合法
(md5 string)
| 160 | //@param md5 md5 |
| 161 | //@return bool 如果文档存在于非法文档表中,则表示文档非法,否则合法 |
| 162 | func (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 |
no test coverage detected