mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-21 22:30:46 +08:00
fix(notice): fix the buf of notice with null record field (#31)
This commit is contained in:
@@ -58,7 +58,6 @@ func extractTarGz(gzipStream io.Reader) error {
|
|||||||
|
|
||||||
switch header.Typeflag {
|
switch header.Typeflag {
|
||||||
case tar.TypeReg:
|
case tar.TypeReg:
|
||||||
log.Trace(header.Name)
|
|
||||||
if !strings.HasSuffix(header.Name, "GeoLite2-City.mmdb") {
|
if !strings.HasSuffix(header.Name, "GeoLite2-City.mmdb") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ type Record interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type BaseRecord struct {
|
type BaseRecord struct {
|
||||||
Record `gorm:"-" json:"-"`
|
Record `gorm:"-" json:"-" notice:"-"`
|
||||||
ID uint `gorm:"primarykey" form:"id" json:"id" notice:"-"`
|
ID uint `gorm:"primarykey" form:"id" json:"id" notice:"-"`
|
||||||
RuleName string `gorm:"index" form:"rule_name" json:"rule_name" notice:"rule"`
|
RuleName string `gorm:"index" form:"rule_name" json:"rule_name" notice:"rule"`
|
||||||
Flag string `gorm:"index" form:"flag" json:"flag" `
|
Flag string `gorm:"index" form:"flag" json:"flag" `
|
||||||
|
|||||||
Reference in New Issue
Block a user