Browse Source

更新服务配置描述清理

在服务配置初始化过程中,添加了对`ServiceConfig.Describe`字段的数据清理步骤,确保其内容干净且格式正确。这一改动利用了`utilsClenFileData`函数来处理描述信息。
SongZihuan 1 week ago
parent
commit
687e4b9b60
1 changed files with 2 additions and 0 deletions
  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 {