Update config.go

This commit is contained in:
wenjianzhang authored and GitHub committed 2020-03-23 12:29:02 +08:00
1 parent bfe9cef048
commit 6ecefda341
1 file changed
+1 -1
+1 -1
View File
@@ -34,7 +34,7 @@ type Config struct {
func (e *Config) Create() (Config, error) { func (e *Config) Create() (Config, error) {
var doc Config var doc Config
doc.IsDel = "0" doc.IsDel = "0"
e.CreateTime = time.Now().String() e.CreateTime = utils.GetCurrntTime()
result := orm.Eloquent.Table("sys_config").Create(&e) result := orm.Eloquent.Table("sys_config").Create(&e)
if result.Error != nil { if result.Error != nil {
err := result.Error err := result.Error