From ad476f94d056f34cb1b1885e1762e027f946e78f Mon Sep 17 00:00:00 2001 From: SwTt29 <2055018491@qq.com> Date: Thu, 18 Dec 2025 09:37:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=81=94=E7=B3=BB=E4=BA=BA?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=98=A0=E5=B0=84=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E5=B0=86name=E6=94=B9=E4=B8=BAnickName?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/config.js | 4 ++-- src/services/jiandaoyunService.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config/config.js b/src/config/config.js index e27ef59..83da491 100644 --- a/src/config/config.js +++ b/src/config/config.js @@ -18,7 +18,7 @@ module.exports = { id: 'id', userId: 'userId', company: 'company', - name: 'name', + name: 'nickName', phoneNumber: 'phoneNumber', type: 'type', city: 'city' @@ -58,7 +58,7 @@ module.exports = { fieldMapping: { 'userId': '_widget_1765164283327', 'company': '_widget_1765164283326', - 'name': '_widget_1765164283341', + 'nickName': '_widget_1765164283341', 'phoneNumber': '_widget_1765164283342', 'type': '_widget_1765171392031', 'city': '_widget_1765164283330', diff --git a/src/services/jiandaoyunService.js b/src/services/jiandaoyunService.js index d9fe2c9..00f0755 100644 --- a/src/services/jiandaoyunService.js +++ b/src/services/jiandaoyunService.js @@ -67,7 +67,7 @@ class JiandaoyunService { // 使用简道云API v1的正确值格式,使用value字段来包装值 jiandaoyunData[mapping.userId] = { value: user.userId || '' }; jiandaoyunData[mapping.company] = { value: user.company || '' }; - jiandaoyunData[mapping.name] = { value: user.name || '' }; + jiandaoyunData[mapping.nickName] = { value: user.name || '' }; jiandaoyunData[mapping.phoneNumber] = { value: user.phoneNumber || '' }; jiandaoyunData[mapping.type] = { value: user.type || '' }; jiandaoyunData[mapping.city] = { value: user.city || '' }; @@ -209,7 +209,7 @@ class JiandaoyunService { const testData = { [mapping.userId]: { value: '123456' }, // 测试用户ID [mapping.company]: { value: '测试公司' }, - [mapping.name]: { value: '测试联系人' }, + [mapping.nickName]: { value: '测试联系人' }, [mapping.phoneNumber]: { value: '13800138000' }, [mapping.type]: { value: '零售客户' }, // 测试客户类型 [mapping.city]: { value: '北京' } // 测试地区