|
@@ -24,8 +24,12 @@ public class OauthRestController {
|
|
|
@NoAPIResponse
|
|
|
public String auth(@RequestBody String body) {
|
|
|
logger.info("body", body, "key", "oauth/weixin/auth");
|
|
|
- String xml = WxCrypt.decrypt(WxXmlUtil.getEncrypt(body));
|
|
|
+ var encrypt = WxXmlUtil.getEncrypt(body);
|
|
|
+ logger.info("data", encrypt);
|
|
|
+ String xml = WxCrypt.decrypt(encrypt);
|
|
|
+ logger.info("data", xml);
|
|
|
String componentVerifyTicket = WxXmlUtil.getComponentVerifyTicket(xml);
|
|
|
+ logger.info("data", componentVerifyTicket);
|
|
|
redisTemplate.opsForValue().set("WX_TICKET", componentVerifyTicket);
|
|
|
return "success";
|
|
|
}
|