|
@@ -49,7 +49,7 @@ public class Log {
|
|
if (!isAuth) {
|
|
if (!isAuth) {
|
|
com.alibaba.fastjson.JSONObject json = new com.alibaba.fastjson.JSONObject();
|
|
com.alibaba.fastjson.JSONObject json = new com.alibaba.fastjson.JSONObject();
|
|
json.put("check", false);
|
|
json.put("check", false);
|
|
- json.put("errMsg", "权限错误,请重新登录");
|
|
|
|
|
|
+ json.put("errMsg", "鏉冮檺閿欒�锛岃�閲嶆柊鐧诲綍");
|
|
return null;
|
|
return null;
|
|
|
|
|
|
}
|
|
}
|
|
@@ -57,13 +57,13 @@ public class Log {
|
|
String vLoginname = o.getVLoginname();
|
|
String vLoginname = o.getVLoginname();
|
|
Page<SysLogDTO> sysLogDTOPage = logService.queryLogList(pageSize, pageNo, vLoginname);
|
|
Page<SysLogDTO> sysLogDTOPage = logService.queryLogList(pageSize, pageNo, vLoginname);
|
|
// String s = JSONObject.toJSON(sysLogDTOPage).toString();
|
|
// String s = JSONObject.toJSON(sysLogDTOPage).toString();
|
|
- // 两者缺一不可,缺setCharacterEncoding,则中文变成“???”
|
|
|
|
- //缺setContentType,则中文变成“骞夸??...”
|
|
|
|
|
|
+ // 涓よ€呯己涓€涓嶅彲锛岀己setCharacterEncoding锛屽垯涓�枃鍙樻垚鈥�???鈥�
|
|
|
|
+ //缂簊etContentType锛屽垯涓�枃鍙樻垚鈥滈獮澶�??...鈥�
|
|
// response.setCharacterEncoding("UTF-8");
|
|
// response.setCharacterEncoding("UTF-8");
|
|
|
|
|
|
// response.setContentType("text/html");
|
|
// response.setContentType("text/html");
|
|
// byte[] utf8Bytes = s.getBytes("UTF-8");
|
|
// byte[] utf8Bytes = s.getBytes("UTF-8");
|
|
-//然后用utf-8 对这个字节数组解码成新的字符串
|
|
|
|
|
|
+//鐒跺悗鐢╱tf-8 瀵硅繖涓�瓧鑺傛暟缁勮В鐮佹垚鏂扮殑瀛楃�涓�
|
|
// String utf8Str = new String(utf8Bytes, "UTF-8");
|
|
// String utf8Str = new String(utf8Bytes, "UTF-8");
|
|
|
|
|
|
|
|
|