Ver Código Fonte

修改显示乱码bug

mengjie 7 anos atrás
pai
commit
09ff8d82e8

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

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