diff --git a/internal/service/sys_deploy_file_service.go b/internal/service/sys_deploy_file_service.go index ae484ba..0df77d0 100644 --- a/internal/service/sys_deploy_file_service.go +++ b/internal/service/sys_deploy_file_service.go @@ -111,9 +111,7 @@ func (s *SysDeployFileService) UpdateByID(c *gin.Context) serializer.Response { deployFile.UpdateTime = &now // 获取当前用户 - if updateBy := currentUserId; updateBy != "" { - deployFile.UpdateBy = updateBy - } + deployFile.UpdateBy = currentUserId if err := s.Db.Model(&deployFile).Where("deploy_id = ? AND del_flag = ? AND create_by = ?", id, "0", currentUserId).Updates(&deployFile).Error; err != nil { logger.Error(c, "更新部署文件记录失败!")