同步任务信息修改

This commit is contained in:
zhangwei 2023-11-27 16:52:19 +08:00
parent e1a0e36cf9
commit aa19973343
1 changed files with 7 additions and 6 deletions

View File

@ -26,12 +26,13 @@ func SyncTask(svc *svc.ServiceContext) {
ParticipantId: participantId,
}
infoList, err := svc.PcmCoreRpc.InfoList(context.Background(), &infoReq)
tool.Convert(&infoList.CloudInfoList, &oldCloudList)
if err != nil {
logx.Error(err)
return
}
if len(infoList.CloudInfoList) != 0 {
if infoList != nil && len(infoList.CloudInfoList) != 0 {
tool.Convert(&infoList.CloudInfoList, &oldCloudList)
if err != nil {
logx.Error(err)
return
}
// 遍历执行任务操作
for index, _ := range infoList.CloudInfoList {
// 删除任务