-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
将Desktop原先和Core交互的形式从http请求修改为直接函数访问
- Loading branch information
Showing
18 changed files
with
619 additions
and
301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using Masuit.Tools; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Core.RuntimeObject | ||
{ | ||
public static class Login | ||
{ | ||
public static async Task<string> get_login_urlAsync() | ||
{ | ||
string URL = string.Empty; | ||
int waitTime = 0; | ||
while (waitTime <= 3000) | ||
{ | ||
if (System.IO.File.Exists(Core.Config.Core_RunConfig._QrUrl)) | ||
{ | ||
FileInfo fi = new FileInfo(Core.Config.Core_RunConfig._QrUrl); | ||
using (FileStream fs = fi.OpenRead()) | ||
{ | ||
URL = fs.ReadAllText(Encoding.UTF8); | ||
} | ||
} | ||
else | ||
{ | ||
await Task.Delay(1000); | ||
waitTime += 1000; | ||
} | ||
} | ||
return URL; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.