Sfoglia il codice sorgente

修改显示乱码bug

mengjie 7 anni fa
parent
commit
c1f4e86e71

+ 3 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Global.asax.cs

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