(key, def string)
| 75 | } |
| 76 | |
| 77 | func GetOptionValue(key, def string) string { |
| 78 | if option, err := NewOption().FindByKey(key); err == nil { |
| 79 | return option.OptionValue |
| 80 | } |
| 81 | return def |
| 82 | } |
| 83 | |
| 84 | func (p *Option) InsertOrUpdate() error { |
| 85 | defer func() { |
no test coverage detected