denny há 3 anos atrás
pai
commit
c018e04fcc
3 ficheiros alterados com 7 adições e 5 exclusões
  1. 5 3
      DocHtml/Program.cs
  2. 1 1
      DocHtml/demoHtml.html
  3. 1 1
      DocTools/CreateDocHtml.cs

+ 5 - 3
DocHtml/Program.cs

@@ -51,13 +51,15 @@ namespace DocHtml
                 File.Copy(dllPath, destDllPath, true);
                 File.Copy(xmlPath, destXmlPath, true);
                 LoadData.SetInterfaceConfigToCache(destDirect, $"_{InterfaceDllVersion}");
-                CreateDocHtml doc = new CreateDocHtml();
-                var resEntity = doc.CreateDocProjectString(InterfaceDllVersion);
+                CreateDocHtml doc = new CreateDocHtml(); 
+                var resPath = ConfigurationManager.GetParammeter<StringParameter>("ReponseService", "DocHtmlPath").Value;
+                var secondService = ConfigurationManager.GetParammeter<StringParameter>("ReponseService", "SecondService").Value;
+                var fileName = secondService + Path.GetFileName(resPath);
+                var resEntity = doc.CreateDocProjectString(InterfaceDllVersion, fileName);
                 var json = JsonConvert.SerializeObject(resEntity).Replace("\"Event\":", "\"event\":");
                 var readXMLPath = AppDomain.CurrentDomain.BaseDirectory + "\\XML.htm";
                 var htmlContent = File.ReadAllText(readXMLPath);
                 var resultHtml = htmlContent.Replace("$GetExportDocHtml()", json);
-                var resPath = ConfigurationManager.GetParammeter<StringParameter>("ReponseService", "DocHtmlPath").Value;
                 if (File.Exists(resPath))
                 {
                     File.Delete(resPath);

+ 1 - 1
DocHtml/demoHtml.html

@@ -25,7 +25,7 @@
 <div class="body">
     <div class="doc-head">
         <div class="left">
-            <img src="https://img.cdn.apipost.cn/docs/images/logo.svg">
+            <img src="http://192.168.6.117:9001/BJ_VinnoBucket/BlueLogoChinese_7_0_0_0.png" style="margin-top: 3px;">
         </div>
         <div class="container">
             <div class="container-left">

+ 1 - 1
DocTools/CreateDocHtml.cs

@@ -118,7 +118,7 @@ namespace DocTools
                 var tableHtml = "<table><tbody><tr><th>服务名</th><th>查看详情</th></tr>";
                 foreach (var key in dic.Keys)
                 {
-                    tableHtml += "<tr><td>" + key + "</td><td><a target=\"_blank\" href=\"/" + FileName + "#" + dic[key] + "\">详情</a></td></tr>";
+                    tableHtml += "<tr><td>" + key + "</td><td><a target=\"_blank\" style=\"text-decoration: underline;color: blue;\" href=\"/" + FileName + "#" + dic[key] + "\">详情</a></td></tr>";
                 }
                 tableHtml += "</tbody></table>";
                 allHtml += tableHtml + "</div>";