提交 cab4c849 作者: zhenjie

关注公众号-事件推送-查询用户信息修改-日志打印

上级 824a6c79
...@@ -64,7 +64,7 @@ public class WxController extends BaseController { ...@@ -64,7 +64,7 @@ public class WxController extends BaseController {
out.println(bs ? echostr : null); out.println(bs ? echostr : null);
} }
@ApiOperation(value = "监控微信公众号的事件变化通知", hidden = true) @ApiOperation(value = "监控微信公众号的事件变化通知")
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = String.class)}) @ApiResponses({@ApiResponse(code = 200, message = "OK", response = String.class)})
@PostMapping("wxSendMessage") @PostMapping("wxSendMessage")
public void wxSendMessage(HttpServletRequest req, HttpServletResponse resp) throws IOException { public void wxSendMessage(HttpServletRequest req, HttpServletResponse resp) throws IOException {
......
...@@ -185,8 +185,10 @@ public class WxServiceImpl implements WxService { ...@@ -185,8 +185,10 @@ public class WxServiceImpl implements WxService {
log.info("start updateWXUserInfo"); log.info("start updateWXUserInfo");
String accessToken = this.getStableAccessToken(); String accessToken = this.getStableAccessToken();
if (StringUtils.isBlank(accessToken)) { if (StringUtils.isBlank(accessToken)) {
log.info("accessToken is blank");
return; return;
} }
log.info("start updateWXUserInfo");
try { try {
String InfoUrl = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=" + accessToken + "&openid=" + openid String InfoUrl = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=" + accessToken + "&openid=" + openid
+ "&lang=zh_CN"; + "&lang=zh_CN";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论