|
|
@@ -1,4 +1,5 @@
|
|
1
|
|
-using CallCenterApi.Common;
|
|
|
1
|
+using CallCenter.Utility;
|
|
|
2
|
+using CallCenterApi.Common;
|
|
2
|
3
|
using CallCenterApi.Interface.Models.Common;
|
|
3
|
4
|
using System;
|
|
4
|
5
|
using System.Collections.Generic;
|
|
|
@@ -32,6 +33,7 @@ namespace CallCenterApi.Interface
|
|
32
|
33
|
var date = DateTime.Parse(Configs.GetValue("AuthDate"));
|
|
33
|
34
|
if (date < DateTime.Now)
|
|
34
|
35
|
{
|
|
|
36
|
+ context.Response.ContentType = "text/plain; charset=utf-8";
|
|
35
|
37
|
context.Response.Write(new AjaxResult { state = ResultTypes.error.ToString(), message = "授权过期,请联系系统厂家。" }.ToJson());
|
|
36
|
38
|
context.Response.End();
|
|
37
|
39
|
}
|