Commit 836269cb by 墨竹

feat:bug修改

parent 8bdc00e0
......@@ -226,7 +226,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
AuthRequestWellDoneUtil.delToken();
String newToken = JwtUtil.genToken(tokenMap);
AuthRequestWellDoneUtil.setAppLoginUser(newToken, BeanUtil.mapToBean(tokenMap, WellDoneLoginDTO.class, false));
return resultResponse(HaoBanErrCode.ERR_1, token);
return resultResponse(HaoBanErrCode.ERR_1, newToken);
}
/**
......
......@@ -85,4 +85,11 @@ public class JwtUtil {
map.forEach((k, v) -> resultMap.put(k, v.asString()));
return resultMap;
}
public static void main(String[] args) {
String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwaG9uZU51bWJlciI6IjEzNTc2MjIzNDQ3IiwiaXNzIjoiZ2ljX2hhb2JhbiIsInd4RW50ZXJwcmlzZUlkIjoiY2E2NmEwMWI3OTQ3NGM0MGIzZTdjN2Y5M2RhZjFhM2IiLCJzdGFmZklkIjoiZWM0ODI0NzBiZmIxNGFlZjkxMTBhYTIwM2Y5MmRmYjgifQ.rcP4U42mvvNKiiJXWoHVL8ad7doFmfgt5LuigrI_m5I";
Map<String, String> stringStringMap = parseToken(token);
String s = genToken(stringStringMap);
System.out.println(s);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment