Skip to content

Commit 850c4f9

Browse files
author
guorutao
committed
支持两个平台
1 parent 86272bd commit 850c4f9

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/main/java/com/unfbx/zdm_push/pipeline/ZdmPipeline.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ public void process(ResultItems resultItems, Task task) {
3939
if(StringUtils.isBlank(keyType)){
4040
log.info("~~~~~~~~~~~~~~~~为配置微信推送类型,到application.yml配置~~~~~~~~~~~~~~~~");
4141
}
42+
ServerResponse serverResponse = null;
4243
if(KeyType.SERVER_J.getValue().equals(keyType)){
43-
ServerResponse serverResponse = serverPush.pushJMsgToWechat(zdmInfo);
44+
serverResponse = serverPush.pushJMsgToWechat(zdmInfo);
4445
}
4546
if(KeyType.PUSH_PLUS.getValue().equals(keyType)){
46-
ServerResponse serverResponse = serverPush.pushPushMsgToWechat(zdmInfo);
47+
serverResponse = serverPush.pushPushMsgToWechat(zdmInfo);
4748
}
48-
log.info("~~~~~~~~~~~~~~~~微信推送类型配置错误,到application.yml修改配置~~~~~~~~~~~~~~~~");
49+
log.info("~~~~~~~~~~~~~~~~"+serverResponse.getMsg()+"~~~~~~~~~~~~~~~~");
4950
}else {
5051
log.info("~~~~~~~~~~~~~~~~暂无更新数据~~~~~~~~~~~~~~~~");
5152
}

src/main/java/com/unfbx/zdm_push/service/ServerPush.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class ServerPush {
3333
/**
3434
* 私人密钥
3535
*/
36-
@Value("${key.type}")
36+
@Value("${key.value}")
3737
private String keyValue;
3838

3939

0 commit comments

Comments
 (0)