Commit 4f267b7d by 李嘉林

过滤未开启的订阅消息

parent d5754ea2
...@@ -206,7 +206,9 @@ export default { ...@@ -206,7 +206,9 @@ export default {
log.info("wx mini subscribe message data: ", data); log.info("wx mini subscribe message data: ", data);
console.log(data.miniMessageConfigResponseDTOList,'-------------data') console.log(data.miniMessageConfigResponseDTOList,'-------------data')
if(data.miniMessageConfigResponseDTOList && data.miniMessageConfigResponseDTOList.length>0) { if(data.miniMessageConfigResponseDTOList && data.miniMessageConfigResponseDTOList.length>0) {
this.miniMsgList = data.miniMessageConfigResponseDTOList; this.miniMsgList = data.miniMessageConfigResponseDTOList.filter(item=>item.isOpen == 1);
console.log(this.miniMsgList,'---this.miniMsgList')
log.info(this.miniMsgList,'--this.miniMsgList')
this.miniIdlist = this.miniMsgList.map(item=>item.priTmplId); this.miniIdlist = this.miniMsgList.map(item=>item.priTmplId);
} }
} }
......
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