在服务配置初始化过程中,添加了对`ServiceConfig.Describe`字段的数据清理步骤,确保其内容干净且格式正确。这一改动利用了`utilsClenFileData`函数来处理描述信息。
@@ -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 {