From 2f223733410420ca64f4ca898a2ed9b3c1c6804f Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 29 Sep 2022 11:34:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=81=E5=BF=97=E6=84=BF=E8=80=85demo?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E7=94=A8=E6=88=B7=E8=87=AA=E5=B7=B1=E6=8A=93?= =?UTF-8?q?=E5=8F=96=E5=A4=96=E9=83=A8=E8=81=94=E7=B3=BB=E4=BA=BA=E5=92=8C?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=B0=83=E8=AF=95=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppOpenChat/AppOpenChat.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/apps/AppOpenChat/AppOpenChat.vue b/src/apps/AppOpenChat/AppOpenChat.vue index 3b5135df..cc90ae9e 100644 --- a/src/apps/AppOpenChat/AppOpenChat.vue +++ b/src/apps/AppOpenChat/AppOpenChat.vue @@ -22,18 +22,18 @@ export default { ...mapActions(['injectJWeixin']), getUsers() { return Promise.all([ - this.$http.post("/app/wxcp/wxuser/list", null, {params: {listType: 0}}).then(res => { - if (res?.data) { - return this.users.userIds = res.data.records?.map(e => e.id) - } - }), + // this.$http.post("/app/wxcp/wxuser/list", null, {params: {listType: 0}}).then(res => { + // if (res?.data) { + // return this.users.userIds = res.data.records?.map(e => e.id).join(";") + // } + // }), this.$http.post("/app/wxcp/wxcustomer/list", null, { params: { wxUserId: this.user.wxUserId } }).then(res => { if (res?.data) { - return this.users.externalUserIds = res.data.records?.map(e => e.id) + return this.users.externalUserIds = res.data.records?.filter(e => e.type == 1)?.map(e => e.id).join(";") } }), ]) @@ -43,8 +43,8 @@ export default { created() { this.injectJWeixin("openEnterpriseChat").then(() => this.$confirm("确定创建省志愿者活动专用群聊?")) .then(this.getUsers).then(() => { + console.log(this.users) wx.openEnterpriseChat({ - userIds: "18507227517;AiXianLing", externalUserIds: "wmGBFVDgAAj_krfwaThRm-RRAq9rBeaQ", groupName: "省志愿者活动专用群", ...this.users,