Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
06d3af99
Commit
06d3af99
authored
Oct 29, 2021
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、自动更新逻辑优化
parent
02a1981d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
Tools.exe.config
AppHome/Tools.exe.config
+1
-1
wMain.cs
Tools/wMain.cs
+9
-2
No files found.
AppHome/Tools.exe.config
View file @
06d3af99
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<
appSettings
>
<
appSettings
>
<
add
key
=
"LoginInfo"
value
=
"wwF/xpBzWek="
/>
<
add
key
=
"LoginInfo"
value
=
"wwF/xpBzWek="
/>
<
add
key
=
"LoginVerify"
value
=
"v86f5Q3Xa7U="
/>
<
add
key
=
"LoginVerify"
value
=
"v86f5Q3Xa7U="
/>
<
add
key
=
"UpdateTime"
value
=
"2021-10-
13 10:13:09.32
0"
/>
<
add
key
=
"UpdateTime"
value
=
"2021-10-
29 17:01:19.23
0"
/>
</
appSettings
>
</
appSettings
>
<
startup
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.8"
/>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.8"
/>
...
...
Tools/wMain.cs
View file @
06d3af99
...
@@ -272,8 +272,15 @@ namespace Tools
...
@@ -272,8 +272,15 @@ namespace Tools
//启动更新程序
//启动更新程序
Task
.
Run
(()
=>
new
Process
()
{
StartInfo
=
info
}.
Start
())
Task
.
Run
(()
=>
new
Process
()
{
StartInfo
=
info
}.
Start
())
.
ContinueWith
((
x
)
=>
{
.
ContinueWith
((
x
)
=>
{
var
date
=
Convert
.
ToDateTime
(
drv
[
"UDate"
]);
if
(
x
.
IsCompleted
&&
x
.
Exception
==
null
)
Utils
.
AppSettings
(
APP
.
UPDATE_TIME
,
date
.
ToString
(
"yyyy-MM-dd HH:mm:ss.fff"
));
{
var
date
=
Convert
.
ToDateTime
(
drv
[
"UDate"
]);
Utils
.
AppSettings
(
APP
.
UPDATE_TIME
,
date
.
ToString
(
"yyyy-MM-dd HH:mm:ss.fff"
));
}
else
{
Utils
.
Tip
(
x
.
Exception
.
Message
);
}
});
});
//退出运行环境
//退出运行环境
Application
.
Exit
();
Application
.
Exit
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment