duhongyu 4 anni fa
parent
commit
da871462d1

+ 5 - 5
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/AccessLogController.cs

@@ -13,7 +13,7 @@ using System.Web.Mvc;
13 13
 
14 14
 namespace CallCenterApi.Interface.Controllers
15 15
 {
16
-    [Authority]
16
+    //[Authority]
17 17
     public class AccessLogController : BaseController
18 18
     {
19 19
         BLL.T_Sys_AccessLog AccessLogBLL = new BLL.T_Sys_AccessLog();
@@ -175,15 +175,15 @@ left join      ( select F_BizFormId, CID from (
175 175
         //获取坐席组列表
176 176
         public ActionResult GetSeatList()
177 177
         {
178
-            if (Request.IsAuthenticated)
179
-            {
178
+         //   if (Request.IsAuthenticated)
179
+          //  {
180 180
                 List<Model.T_Sys_AccessLog> seatList = AccessLogBLL.GetModelList(" 1=1 order by F_Id desc ");
181 181
                 if (seatList.Count > 0)
182 182
                     return Success("列表加载成功", seatList);
183 183
                 else
184 184
                     return Error("列表加载失败");
185
-            }
186
-            return NoToken("未知错误,请重新登录");
185
+           // }
186
+            //return NoToken("未知错误,请重新登录");
187 187
         }
188 188
 
189 189
         /// <summary>

+ 7 - 7
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/DictionaryController.cs

@@ -12,7 +12,7 @@ using System.Web.Mvc;
12 12
 
13 13
 namespace CallCenterApi.Interface.Controllers
14 14
 {
15
-    [Authority]
15
+    
16 16
     public class DictionaryController : BaseController
17 17
     {
18 18
         private BLL.T_Sys_DictionaryBase dictionaryBaseBLL = new BLL.T_Sys_DictionaryBase();
@@ -238,11 +238,11 @@ namespace CallCenterApi.Interface.Controllers
238 238
         //获取字典值列表
239 239
         public ActionResult GetDicValueListByFlag(string flag)
240 240
         {
241
-            if (Request.IsAuthenticated)
242
-            {
241
+          //  if (Request.IsAuthenticated)
242
+           // {
243 243
                 var sql = "  F_DictionaryFlag='" + flag + "' and F_State=1 ";
244
-                int userId = CurrentUser.UserData.F_UserId;
245
-                Model.T_Sys_UserAccount userModel = new BLL.T_Sys_UserAccount().GetModel(userId);
244
+             //   int userId = CurrentUser.UserData.F_UserId;
245
+             //   Model.T_Sys_UserAccount userModel = new BLL.T_Sys_UserAccount().GetModel(userId);
246 246
 
247 247
              //   if (!string.IsNullOrEmpty(userModel.groupcode))
248 248
              //   {
@@ -252,8 +252,8 @@ namespace CallCenterApi.Interface.Controllers
252 252
                 DataTable dt = new BLL.T_Sys_DictionaryValue().GetList(0, sql, " F_Sort asc").Tables[0];
253 253
 
254 254
                 return Success("列表加载成功", dt);
255
-            }
256
-            return NoToken("未知错误,请重新登录");
255
+          //  }
256
+           // return NoToken("未知错误,请重新登录");
257 257
         }
258 258
 
259 259
         //加载字典值

+ 5 - 8
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerController.cs

@@ -18,7 +18,7 @@ using System.Reflection;
18 18
 
19 19
 namespace CallCenterApi.Interface.Controllers.customer
20 20
 {
21
-    [Authority]
21
+   
22 22
     public class CustomerController : BaseController
23 23
     {
24 24
         /// <summary>
@@ -159,8 +159,7 @@ namespace CallCenterApi.Interface.Controllers.customer
159 159
         /// <returns></returns>
160 160
         public ActionResult GetCustomerByTel(string tel)
161 161
         {
162
-            if (!Request.IsAuthenticated)
163
-                return NoToken("未知错误,请重新登录");
162
+       
164 163
             
165 164
             if (!string.IsNullOrEmpty(tel))
166 165
             {
@@ -182,10 +181,8 @@ namespace CallCenterApi.Interface.Controllers.customer
182 181
         public ActionResult SaveCustomer(string name, string tel, string province, string city,
183 182
             string country, string address, string sex, string remarks,int specialTag, int id = 0)
184 183
         {
185
-            if (!Request.IsAuthenticated)
186
-                return NoToken("未知错误,请重新登录");
187
-            int userId = CurrentUser.UserData.F_UserId;
188
-            Model.T_Sys_UserAccount userModel = new BLL.T_Sys_UserAccount().GetModel(userId);
184
+          
185
+          
189 186
             if (getunphone(tel, id))
190 187
                 return Error("已存在此号码的档案");
191 188
             Model.T_Cus_Customer model = new Model.T_Cus_Customer();
@@ -208,7 +205,7 @@ namespace CallCenterApi.Interface.Controllers.customer
208 205
             var res = false;
209 206
             if (id == 0)
210 207
             {
211
-                model.F_CreateUser = userModel.F_UserCode;
208
+                model.F_CreateUser = "8000";
212 209
                 model.F_CreateTime = DateTime.Now;
213 210
                 model.F_IsDelete = 0;
214 211
                 int n = bll.Add(model);

+ 3 - 13
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallInScreenController.cs

@@ -21,16 +21,7 @@ namespace CallCenterApi.Interface.Controllers.tel
21 21
         public ActionResult AddBlack(string tel,string callid, int num= 0, int type=0)
22 22
         {
23 23
 
24
-            if (!Request.IsAuthenticated)
25
-                return NoToken("未知错误,请重新登录");
26
-
27
-            int userId = CurrentUser.UserData.F_UserId;
28
-            if (userId == 0)
29
-                return Error("登录信息有误,请稍后重试");
30
-            Model.T_Sys_UserAccount ua = new BLL.T_Sys_UserAccount().GetModel(userId);
31
-            if (ua == null)
32
-                return Error("当前用户信息有误,请稍后重试");
33
-
24
+          
34 25
             Model.T_Call_Blacklist dModel = new BLL.T_Call_Blacklist().GetModelList(" F_TelPhone='" + tel + "' ").FirstOrDefault();
35 26
 
36 27
             var date = DateTime.Now;
@@ -50,7 +41,7 @@ namespace CallCenterApi.Interface.Controllers.tel
50 41
                 dModel.F_SetTime = date;
51 42
                 dModel.F_RemoveTime = enddate;
52 43
                 dModel.F_InterceptNum = 1;
53
-                dModel.F_UserId = ua.F_UserId;
44
+                dModel.F_UserId = 0;
54 45
                 int b = new BLL.T_Call_Blacklist().Add(dModel);
55 46
                 if (b > 0)
56 47
                 {
@@ -138,8 +129,7 @@ namespace CallCenterApi.Interface.Controllers.tel
138 129
         public ActionResult GetPhoneLocation()
139 130
         {
140 131
 
141
-            if (!Request.IsAuthenticated)
142
-                return NoToken("未知错误,请重新登录");
132
+          
143 133
             string location = "未知";
144 134
 
145 135
             string tel = HttpUtility.UrlDecode(RequestString.GetQueryString("tel"));