|
|
@@ -50,8 +50,8 @@ namespace CallCenterApi.Interface.Controllers
|
|
50
|
50
|
string pw = "";
|
|
51
|
51
|
try
|
|
52
|
52
|
{
|
|
53
|
|
- pw = otherController.Decrypt(login.Password.Trim (), st);
|
|
54
|
|
-
|
|
|
53
|
+ pw = otherController.Decrypt(login.Password.Trim(), st);
|
|
|
54
|
+
|
|
55
|
55
|
}
|
|
56
|
56
|
catch (Exception e)
|
|
57
|
57
|
{
|
|
|
@@ -138,7 +138,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
138
|
138
|
});
|
|
139
|
139
|
var token = FormsPrincipal<Dictionary<string, string>>.GetCookieValue(Dic["F_UserCode"], Dic);
|
|
140
|
140
|
var user = new BLL.T_Sys_UserAccount().GetModel(dt.Rows[0]["F_UserCode"].ToString());
|
|
141
|
|
- if (user!=null )
|
|
|
141
|
+ if (user != null)
|
|
142
|
142
|
{
|
|
143
|
143
|
user.F_LastActiveTime = DateTime.Now;
|
|
144
|
144
|
new BLL.T_Sys_UserAccount().Update(user);
|
|
|
@@ -159,7 +159,14 @@ namespace CallCenterApi.Interface.Controllers
|
|
159
|
159
|
else
|
|
160
|
160
|
{
|
|
161
|
161
|
//写入登录日志
|
|
162
|
|
- DataTable dt1 = new CallCenterApi.BLL.T_Sys_UserAccount().GetList("F_UserCode='" + login.Username + "'").Tables[0];
|
|
|
162
|
+ //DataTable dt1 = new CallCenterApi.BLL.T_Sys_UserAccount().GetList("F_UserCode='" + login.Username + "'").Tables[0];
|
|
|
163
|
+
|
|
|
164
|
+ Dictionary<string, string> paras1 = new Dictionary<string, string>();
|
|
|
165
|
+ int code = int.Parse(login.Username);
|
|
|
166
|
+ string sql1 = " select * from T_Sys_UserAccount where F_UserCode=@F_UserCode ";
|
|
|
167
|
+ paras1.Add("@F_UserCode", login.Username);
|
|
|
168
|
+
|
|
|
169
|
+ var dt1 = DbHelperSQL.Query(sql1, paras1).Tables[0];
|
|
163
|
170
|
if (dt1.Rows.Count > 0)
|
|
164
|
171
|
{
|
|
165
|
172
|
int rr = new CallCenterApi.BLL.T_Sys_LoginLogs().Add(new Model.T_Sys_LoginLogs()
|
|
|
@@ -210,7 +217,6 @@ namespace CallCenterApi.Interface.Controllers
|
|
210
|
217
|
{
|
|
211
|
218
|
return Error("授权过期,请联系系统厂家。");
|
|
212
|
219
|
}
|
|
213
|
|
-
|
|
214
|
220
|
}
|
|
215
|
221
|
public ActionResult GetAuAuthDate()
|
|
216
|
222
|
{
|