From 6209096af35f482ec3c1c672238196046818107b Mon Sep 17 00:00:00 2001 From: tommy <3405129587@qq.com> Date: Wed, 8 Apr 2020 13:22:45 +0800 Subject: [PATCH] live adapter fuction --- controllers/client/sign.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/client/sign.go b/controllers/client/sign.go index 0bb9b3e..89cec6a 100644 --- a/controllers/client/sign.go +++ b/controllers/client/sign.go @@ -26,7 +26,7 @@ func (t *SignCtl) CheckSign() { exist, err := live.GetByActivityId(activityId) t.CheckErr(err) t.Assert(exist, code.MSG_ACTIVITY_NOT_EXIST, "直播活动不存在") - if live.AdaptationFunc != nil { + if live.AdaptationFunc != nil && len(live.AdaptationFunc) != 0 { exist, err = new(models.ModuleServiceHistory).ExistSignModule(live.AdaptationFunc) t.CheckErr(err) if !exist {