📄 functionhelper.cs
字号:
namespace Imps.Client.Utils
{
using Imps.Client.Core;
using System;
using System.Text;
public class FunctionHelper
{
private static User _user;
public static void StartFunc(WebFunction function, string args)
{
try
{
StringBuilder builder = new StringBuilder();
if (_user != null)
{
builder.Append(_user.Configuration.SystemSetting.SysClientSetting.NN_InfoRedirectUrl);
}
else
{
builder.Append("https://uid.fetion.com.cn/SSIPortal/Redirect.aspx?key=");
}
builder.Append((int) function);
if ((_user != null) && !string.IsNullOrEmpty(_user.SsicUrlEncoded))
{
builder.Append("&c=");
builder.Append(_user.SsicUrlEncoded);
}
if (!string.IsNullOrEmpty(args))
{
if (!args.StartsWith("&"))
{
builder.Append("&");
}
builder.Append(args);
}
ShellHelper.StartUrl(builder.ToString());
}
catch (Exception exception)
{
ClientLogger.WriteException(exception);
ShellHelper.StartUrl("http://www.fetion.com.cn");
}
}
public static User CurrentUser
{
get
{
return _user;
}
set
{
_user = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -