From 00bf17838b496e6fcfed2e521f9c27f8f0e3e3c7 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 05 八月 2024 18:38:20 +0800
Subject: [PATCH] ‘’

---
 wechat_staff/pages/kefu/select.js |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/wechat_staff/pages/kefu/select.js b/wechat_staff/pages/kefu/select.js
index 2799167..f73eda1 100644
--- a/wechat_staff/pages/kefu/select.js
+++ b/wechat_staff/pages/kefu/select.js
@@ -47,15 +47,23 @@
     })
     batchAddLike({
       articleIds: enjoyList.filter(i => i.checked).map(i => i.id).join(','),
-      customerId: customer.platSourceId,
+      customerId: customer.customerId,
       platId: customer.platSourceId,
       platSource: customer.platSource
     }).then(res => {
-      setTimeout(() => {
-        wx.showToast({
-          title: '缁戝畾鎴愬姛',icon: 'none'
+      if (res.code == 200) {
+        setTimeout(() => {
+          wx.showToast({
+            title: '缁戝畾鎴愬姛',
+            icon: 'none'
+          })
+        }, 500)
+      }else{
+        return wx.showToast({
+          title: res.message,
+          icon: 'none'
         })
-      }, 500)
+      }
       this.setData({
         customer: {}
       })

--
Gitblit v1.9.3