소스 검색

修改token过去时间

songxinlu 3 년 전
부모
커밋
6479e062a6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/diagbot/config/CustomOauthExceptionSerializer.java

+ 1 - 1
src/main/java/com/diagbot/config/CustomOauthExceptionSerializer.java

@@ -21,7 +21,7 @@ public class CustomOauthExceptionSerializer extends StdSerializer<CustomOauthExc
     public void serialize(CustomOauthException value, JsonGenerator gen, SerializerProvider provider) throws IOException {
         //value内容适当的做一些错误类型判断
         gen.writeStartObject();
-        gen.writeObjectField("code","00020008");
+        gen.writeObjectField("code","10020011");
         gen.writeObjectField("msg","登录超时。为确保您的账户安全,系统已自动退出,请重新登录。");
         gen.writeEndObject();
     }