소스 검색

更新服务配置描述清理

在服务配置初始化过程中,添加了对`ServiceConfig.Describe`字段的数据清理步骤,确保其内容干净且格式正确。这一改动利用了`utilsClenFileData`函数来处理描述信息。
SongZihuan 1 주 전
부모
커밋
687e4b9b60
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      service.go

+ 2 - 0
service.go

@@ -57,6 +57,8 @@ func initServiceConfig() {
 		ServiceConfig.DisplayName = ServiceConfig.Name
 	}
 
+	ServiceConfig.Describe = utilsClenFileData(ServiceConfig.Describe)
+
 	switch ServiceConfig.ArgumentFrom {
 	case FromInstall:
 		if len(os.Args) > 2 && os.Args[1] == Args1Install {