Browse Source

live adapter fuction

master
黄梓健 5 years ago
parent
commit
6209096af3
  1. 2
      controllers/client/sign.go

2
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 {

Loading…
Cancel
Save