Pārlūkot izejas kodu

Merge branch 'master' of http://192.168.1.222:3000/duhongyu/Anyang_api

duhongyu 4 gadi atpakaļ
vecāks
revīzija
7341490374

+ 11 - 5
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Login/LoginController.cs

@@ -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
         {

+ 5 - 5
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Global.asax.cs

@@ -15,7 +15,7 @@ namespace CallCenterApi.Interface
15 15
 {
16 16
     public class MvcApplication : System.Web.HttpApplication
17 17
     {
18
-        private static QuartzWorker _worker;
18
+        //private static QuartzWorker _worker;
19 19
         protected void Application_Start()
20 20
         {
21 21
             AreaRegistration.RegisterAllAreas();
@@ -23,10 +23,10 @@ namespace CallCenterApi.Interface
23 23
             //clq 增加异常日志记录 自定义 HandleErrorAttribute
24 24
             FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
25 25
 
26
-            _worker = new QuartzWorker();
27
-            var callPlanWork = new CallPlanWork();
28
-            _worker.AddWork(callPlanWork);
29
-            _worker.Start();
26
+            //_worker = new QuartzWorker();
27
+            //var callPlanWork = new CallPlanWork();
28
+            //_worker.AddWork(callPlanWork);
29
+            //_worker.Start();
30 30
         }
31 31
 
32 32
         protected void Application_AuthenticateRequest(object sender, EventArgs e)