优化一些功能
This commit is contained in:
@@ -36,6 +36,9 @@ func New(act *activity.Activity, timeAPIURL string, tr *trace.Recorder) *DouyuCl
|
||||
if timeAPIURL == "" {
|
||||
timeAPIURL = constants.DefaultTimeAPI
|
||||
}
|
||||
if tr == nil {
|
||||
tr = &trace.Recorder{}
|
||||
}
|
||||
return &DouyuClient{
|
||||
Activity: act,
|
||||
TimeAPIURL: timeAPIURL,
|
||||
|
||||
Reference in New Issue
Block a user