Skip to content

Commit 78e03c4

Browse files
committed
⬆️ 升级sdk版本为4.6.0
1 parent 17c39f9 commit 78e03c4

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

commit.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
git commit -a -m ":arrow_up: 升级sdk版本为4.6.0"
2+
git pull --rebase
3+
4+
git push origin master

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<description>Spring Boot Demo with wechat Open</description>
1818

1919
<properties>
20-
<weixin-java-open.version>4.5.0</weixin-java-open.version>
20+
<weixin-java-open.version>4.6.0</weixin-java-open.version>
2121

2222
<maven.compiler.source>1.8</maven.compiler.source>
2323
<maven.compiler.target>1.8</maven.compiler.target>

src/main/java/com/github/binarywang/demo/wx/open/controller/WechatNotifyController.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public Object receiveTicket(@RequestBody(required = false) String requestBody, @
2727
@RequestParam("nonce") String nonce, @RequestParam("signature") String signature,
2828
@RequestParam(name = "encrypt_type", required = false) String encType,
2929
@RequestParam(name = "msg_signature", required = false) String msgSignature) {
30-
this.logger.info(
30+
log.info(
3131
"\n接收微信请求:[signature=[{}], encType=[{}], msgSignature=[{}],"
3232
+ " timestamp=[{}], nonce=[{}], requestBody=[\n{}\n] ",
3333
signature, encType, msgSignature, timestamp, nonce, requestBody);
@@ -40,12 +40,12 @@ public Object receiveTicket(@RequestBody(required = false) String requestBody, @
4040
// aes加密的消息
4141
WxOpenXmlMessage inMessage = WxOpenXmlMessage.fromEncryptedXml(requestBody,
4242
wxOpenService.getWxOpenConfigStorage(), timestamp, nonce, msgSignature);
43-
this.logger.debug("\n消息解密后内容为:\n{} ", inMessage.toString());
43+
log.debug("\n消息解密后内容为:\n{} ", inMessage.toString());
4444
try {
4545
String out = wxOpenService.getWxOpenComponentService().route(inMessage);
46-
this.logger.debug("\n组装回复信息:{}", out);
46+
log.debug("\n组装回复信息:{}", out);
4747
} catch (WxErrorException e) {
48-
this.logger.error("receive_ticket", e);
48+
log.error("receive_ticket", e);
4949
}
5050

5151

@@ -61,7 +61,7 @@ public Object callback(@RequestBody(required = false) String requestBody,
6161
@RequestParam("openid") String openid,
6262
@RequestParam("encrypt_type") String encType,
6363
@RequestParam("msg_signature") String msgSignature) {
64-
this.logger.info(
64+
log.info(
6565
"\n接收微信请求:[appId=[{}], openid=[{}], signature=[{}], encType=[{}], msgSignature=[{}],"
6666
+ " timestamp=[{}], nonce=[{}], requestBody=[\n{}\n] ",
6767
appId, openid, signature, encType, msgSignature, timestamp, nonce, requestBody);
@@ -74,7 +74,7 @@ public Object callback(@RequestBody(required = false) String requestBody,
7474
// aes加密的消息
7575
WxMpXmlMessage inMessage = WxOpenXmlMessage.fromEncryptedMpXml(requestBody,
7676
wxOpenService.getWxOpenConfigStorage(), timestamp, nonce, msgSignature);
77-
this.logger.debug("\n消息解密后内容为:\n{} ", inMessage.toString());
77+
log.debug("\n消息解密后内容为:\n{} ", inMessage.toString());
7878
// 全网发布测试用例
7979
if (StringUtils.equalsAnyIgnoreCase(appId, "wxd101a85aa106f53e", "wx570bc396a51b8ff8")) {
8080
try {

0 commit comments

Comments
 (0)