Browse Source

10076

qianyi
shanji 2 years ago
parent
commit
2a90a990b0
  1. 16
      BBWY.Client/App.xaml.cs

16
BBWY.Client/App.xaml.cs

@ -63,13 +63,13 @@ namespace BBWY.Client
//userToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxNDM5OTE0NjczMzA5NzQ5MjQ4IiwidGVhbUlkIjoiMTQ0ODY4MTU0NDE4ODE3MDI0MCIsImV4cCI6MTY4NjQ1OTY0Mn0.4yCbZxOtogD0N868-YgySR5A-16VNnrp8fC13VCRs20"; //齐越耐克
#else
var uid = e.Args.Count() > 0 ? e.Args.LastOrDefault(args => args.StartsWith("uid:")) : string.Empty;
if (string.IsNullOrEmpty(uid))
{
MessageBox.Show("缺少启动参数", "提示");
Environment.Exit(0);
}
var tokenResult = ReadMMF(uid);
//var uid = e.Args.Count() > 0 ? e.Args.LastOrDefault(args => args.StartsWith("uid:")) : string.Empty;
//if (string.IsNullOrEmpty(uid))
//{
// MessageBox.Show("缺少启动参数", "提示");
// Environment.Exit(0);
//}
var tokenResult = ReadMMF();
if (tokenResult.isOk)
userToken = tokenResult.content;
else
@ -160,7 +160,7 @@ namespace BBWY.Client
Console.WriteLine(e.Exception);
}
public (bool isOk, string content) ReadMMF(string mapname)
public (bool isOk, string content) ReadMMF()
{
try

Loading…
Cancel
Save