|
|
@@ -2282,6 +2282,7 @@ public class QwExternalContactServiceImpl extends ServiceImpl<QwExternalContactM
|
|
|
|
|
|
if (state != null && state != "") {
|
|
|
String s = "way:" + corpId + ":";
|
|
|
+ String userPhone = "up:";
|
|
|
if (state.contains(s)) {
|
|
|
if (welcomeCode != null && welcomeCode != "") {
|
|
|
String substring = state.substring(state.indexOf(s) + s.length());
|
|
|
@@ -2325,6 +2326,21 @@ public class QwExternalContactServiceImpl extends ServiceImpl<QwExternalContactM
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (state.contains(userPhone)) {
|
|
|
+ log.error("获客链接添加外部联系人小程序用户手机号");
|
|
|
+ try {
|
|
|
+ //获取手机号数据
|
|
|
+ String phone = state.substring(state.indexOf(userPhone) + userPhone.length());
|
|
|
+ //更新外部联系人小程序用户手机号数据
|
|
|
+ QwExternalContact updateContact = new QwExternalContact();
|
|
|
+ updateContact.setId(contact.getId());
|
|
|
+ updateContact.setFsUserPhone(phone);
|
|
|
+ qwExternalContactMapper.updateQwExternalContact(updateContact);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("获客链接添加外部联系人小程序用户手机号失败,错误信息:{}",e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
log.error("欢迎语====>isSend:{},welcomeCode:{}",isSend,welcomeCode);
|
|
|
if (isSend && welcomeCode != null && welcomeCode != "") {
|
|
|
@@ -6145,12 +6161,4 @@ public class QwExternalContactServiceImpl extends ServiceImpl<QwExternalContactM
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
-
|
|
|
-
|
|
|
- String s = null;
|
|
|
- List<String> strings = JSON.parseArray(s, String.class);
|
|
|
- System.out.println(strings);
|
|
|
- System.out.println(!CollectionUtils.isEmpty(strings));
|
|
|
- }
|
|
|
}
|