适配登录方式传送机制

This commit is contained in:
dathlin
2017-07-24 20:54:40 +08:00
parent 417dc64fa7
commit 4fc472fced
5 changed files with 13 additions and 5 deletions

View File

@@ -496,8 +496,9 @@ namespace 软件系统服务端模版
//提取账户,密码
string name = SoftBasic.GetValueFromJsonObject(json, UserAccount.UserNameText, "");
string password = SoftBasic.GetValueFromJsonObject(json, UserAccount.PasswordText, "");
string way = SoftBasic.GetValueFromJsonObject(json, UserAccount.LoginWayText, "winform");
UserAccount account = UserServer.ServerAccounts.CheckAccount(name, password, state.GetRemoteEndPoint().Address.ToString());
UserAccount account = UserServer.ServerAccounts.CheckAccount(name, password, state.GetRemoteEndPoint().Address.ToString(), way);
//检测是否重复登录
if(account.LoginEnable)
{