From 642c37ce7d41028470f22a5617275c11e95fce7f Mon Sep 17 00:00:00 2001 From: Tooooommy Date: Tue, 20 Oct 2020 15:05:12 +0800 Subject: [PATCH] live have module --- models/live_config.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/models/live_config.go b/models/live_config.go index 7d1eeba..90acc20 100644 --- a/models/live_config.go +++ b/models/live_config.go @@ -1,8 +1,9 @@ package models import ( - "github.com/ouxuanserver/osmanthuswine/src/core" "time" + + "github.com/ouxuanserver/osmanthuswine/src/core" ) const LiveConfigTN = TableNamePrefix + "live_config" @@ -61,7 +62,7 @@ func (t *LiveConfig) Like(aid interface{}) (int64, error) { } func (t *LiveConfig) HaveModule(module string) bool { - exist, _ := core.GetXormAuto().Where("is_delete=0 and name=?", module).In("id", t.AdaptationFunc).Exist(&ModuleService{}) + exist, _ := core.GetXormAuto().Where("is_delete=0 and name=?", module).In("id", t.AdaptationFunc).Exist(&ModuleServiceHistory{}) return exist }