lith 3 лет назад
Родитель
Сommit
867734e16e

+ 7 - 3
dotnet/ServiceCenter/App.Gover.Gateway/wwwroot/_gover_/index.html

@@ -120,11 +120,15 @@
                     <script src="Scripts/util/lith.js"></script>
                     <script type="text/javascript">
 
+
+                        var date = new Date();
+                        date.setSeconds(date.getSeconds() + 7200);
+
                         var user = lith.document.url_GetArg('user');
                         if (user) {
-                            var date = new Date();
-                            date.setSeconds(date.getSeconds() + 3600);
                             lith.cookie.set('user', user, date);
+                        } else if (!lith.cookie.get('user')) {
+                            lith.cookie.set('user', 'admin_123456', date);
                         }
 
                     </script>
@@ -132,7 +136,7 @@
                     <div class="sidebar-box">
                         <h4>login</h4>
                         <ul>
-                            <li><a href="index.html?user=admin_123456">login</a></li>
+                            <li><a href="index.html">login</a></li>
                         </ul>
                     </div>
 

+ 1 - 1
dotnet/ServiceCenter/App.Gover.Gateway/wwwroot/index.html

@@ -2,7 +2,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
     <title>正在跳转</title>
-    <meta http-equiv="refresh" content="0;url=/_gover_/index.html?user=admin_123456">
+    <meta http-equiv="refresh" content="0;url=/_gover_/index.html">
 </head>
 <body >
   正在跳转...

+ 2 - 8
dotnet/ServiceCenter/Sers.ServiceCenter/Apm/Sers.Gover.Apm.Txt/Sers.Gover.Apm.Txt.csproj

@@ -7,22 +7,16 @@
 
 	<PropertyGroup>
 		<Authors>Lith</Authors>
-		<Description>Sers微服务-服务中心Apm。对Zipkin的支持。</Description>
+		<Description>Sers微服务-服务中心Apm。记录日志到txt文件。</Description>
 		<PackageProjectUrl>https://github.com/serset/Sers</PackageProjectUrl>
 	</PropertyGroup>
 
 	<PropertyGroup>
-		<DocumentationFile>bin\Debug\netstandard2.0\Sers.Gover.Apm.Zipkin.xml</DocumentationFile>
+		<DocumentationFile>bin\Debug\netstandard2.0\Sers.Gover.Apm.Txt.xml</DocumentationFile>
 	</PropertyGroup>
 
-	<ItemGroup>
-		<PackageReference Include="zipkin4net" Version="1.5.0" />
-	</ItemGroup>
-
 	<ItemGroup>
 		<ProjectReference Include="..\..\Sers.Gover\Sers.Gover.csproj" />
 	</ItemGroup>
 
-
-
 </Project>

+ 1 - 1
dotnet/ServiceCenter/Sers.ServiceCenter/Apm/Sers.Gover.Apm.Zipkin/Sers.Gover.Apm.Zipkin.csproj

@@ -7,7 +7,7 @@
 
 	<PropertyGroup>
 		<Authors>Lith</Authors>
-		<Description>Sers微服务-服务中心Apm。对Zipkin的支持。</Description>
+		<Description>Sers微服务-服务中心Apm。推送日志到Zipkin。</Description>
 		<PackageProjectUrl>https://github.com/serset/Sers</PackageProjectUrl>
 	</PropertyGroup>