diff options
Diffstat (limited to 'sub/subController.go')
| -rw-r--r-- | sub/subController.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sub/subController.go b/sub/subController.go index 8de5b5df..dc66c892 100644 --- a/sub/subController.go +++ b/sub/subController.go @@ -27,14 +27,15 @@ func NewSUBController( update string, jsonFragment string, ) *SUBController { + sub := NewSubService(showInfo, rModel) a := &SUBController{ subPath: subPath, subJsonPath: jsonPath, subEncrypt: encrypt, updateInterval: update, - subService: NewSubService(showInfo, rModel), - subJsonService: NewSubJsonService(jsonFragment), + subService: sub, + subJsonService: NewSubJsonService(jsonFragment, sub), } a.initRouter(g) return a |
