@@ -252,7 +252,7 @@ func musicianTasks(userData types.LoginStatusData, data utils.RequestData, autoT
252252 case 393001:
253253 log.Printf("[%s] 执行回复评论任务中", userData.Profile.Nickname)
254254 commentConfig := api.CommentConfig{
255- ResType: 0 ,
255+ ResType: api.ResTypeMusic ,
256256 ResID: config.CommentConfig.RepliedComment[processingUser].MusicID,
257257 CommentID: config.CommentConfig.RepliedComment[processingUser].CommentID,
258258 ForwardEvent: false,
@@ -279,7 +279,7 @@ func musicianTasks(userData types.LoginStatusData, data utils.RequestData, autoT
279279 case 396002:
280280 log.Printf("[%s] 执行发主创说任务中", userData.Profile.Nickname)
281281 commentConfig := api.CommentConfig{
282- ResType: 0 ,
282+ ResType: api.ResTypeMusic ,
283283 ResID: config.CommentConfig.RepliedComment[processingUser].MusicID,
284284 ForwardEvent: false,
285285 }
@@ -335,7 +335,7 @@ func sendEventTask(userData types.LoginStatusData, data utils.RequestData) error
335335 time.Sleep(time.Duration(randomLag) * time.Second)
336336 }
337337 }
338- delResult, err := api.DelEvent(data, int( sendResult.Event.Id) )
338+ delResult, err := api.DelEvent(data, sendResult.Event.Id)
339339 if err != nil {
340340 return err
341341 }
@@ -381,8 +381,8 @@ func replyCommentTask(userData types.LoginStatusData, commentConfig api.CommentC
381381 time.Sleep(time.Duration(randomLag) * time.Second)
382382 }
383383 }
384- commentConfig.CommentID = int( replyResult.Comment.CommentId)
385- commentConfig.ResType = 0
384+ commentConfig.CommentID = replyResult.Comment.CommentId
385+ commentConfig.ResType = api.ResTypeMusic
386386 commentConfig.Content = ""
387387 delResult, err := api.DelComment(data, commentConfig)
388388 if err != nil {
@@ -473,7 +473,7 @@ func sendMlogTask(userData types.LoginStatusData, data utils.RequestData) error
473473 log.Printf("[%s] 延时 %d 秒", userData.Profile.Nickname, randomLag)
474474 time.Sleep(time.Duration(randomLag) * time.Second)
475475 }
476- result, err := api.DelEvent(data, int( mlogData.Data.Event.Id) )
476+ result, err := api.DelEvent(data, mlogData.Data.Event.Id)
477477 if err != nil {
478478 return err
479479 }
@@ -501,8 +501,8 @@ func musicianSaidTask(userData types.LoginStatusData, commentConfig api.CommentC
501501 time.Sleep(time.Duration(randomLag) * time.Second)
502502 }
503503 }
504- commentConfig.CommentID = int( replyResult.Comment.CommentId)
505- commentConfig.ResType = 0
504+ commentConfig.CommentID = replyResult.Comment.CommentId
505+ commentConfig.ResType = api.ResTypeMusic
506506 commentConfig.Content = ""
507507 delResult, err := api.DelComment(data, commentConfig)
508508 if err != nil {
@@ -536,7 +536,7 @@ func checkCloudBean(userData types.LoginStatusData, data utils.RequestData) ([]i
536536 if tasksData.Data.List[i].Status == 20 {
537537 log.Printf("[%s] 「%s」任务已完成, 正在领取云豆", userData.Profile.Nickname, tasksData.Data.List[i].Description)
538538 isObtainCloudBean = true
539- result, err := api.ObtainCloudbean(data, int( tasksData.Data.List[i].UserMissionId) , tasksData.Data.List[i].Period)
539+ result, err := api.ObtainCloudbean(data, tasksData.Data.List[i].UserMissionId, tasksData.Data.List[i].Period)
540540 if err != nil {
541541 log.Errorln(err)
542542 }
0 commit comments