Przeglądaj źródła

外呼新增测试数据,导入修改

anderx 1 rok temu
rodzic
commit
e529a64af8

+ 0 - 2
src/main/java/com/goafanti/customer/service/impl/UserClueServiceImpl.java

@@ -135,7 +135,6 @@ public class UserClueServiceImpl extends BaseMybatisDao<UserMapper> implements U
         StringBuilder msg = new StringBuilder();
         int size=0;
         for (OutUserClueExcel e : list) {
-
             try {
                 checkMobile(e.getContactMobile());
                 checkContacts(e.getContacts());
@@ -164,7 +163,6 @@ public class UserClueServiceImpl extends BaseMybatisDao<UserMapper> implements U
             msg.append("客户导入成功.");
         }
         map.put("msg",msg);
-        System.out.println(msg);
         return map;
     }
 

+ 12 - 7
src/main/java/com/goafanti/customer/service/impl/UserOutboundServiceImpl.java

@@ -18,6 +18,7 @@ import com.goafanti.customer.bo.InputCallNumber;
 import com.goafanti.customer.bo.InputUserCallList;
 import com.goafanti.customer.service.UserOutboundService;
 import org.apache.shiro.crypto.hash.SimpleHash;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 import org.springframework.web.socket.TextMessage;
 
@@ -26,13 +27,17 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
-@Service("userOutboundService")
+@Service
 public class UserOutboundServiceImpl extends BaseMybatisDao<CallLogMapper> implements UserOutboundService {
-    static final String customer="C322";
-    static final String seq="20241101";
-    static final String pwd="084332D02CCF7B42461F34155AC8754F";
-    static final String version= "2.0.6";
-    static final String default_url ="https://webmc.zb-sx.cn:1443";
+    @Value(value = "${zbtx.customer}")
+    private final String	 customer=null;
+    @Value(value = "${zbtx.seq}")
+    private final String	 seq=null;
+    @Value(value = "${zbtx.pwd}")
+    private final String	 pwd=null;
+    @Value(value = "${zbtx.version}")
+    private final String	 version=null;
+    private final String	 default_url ="https://webmc.zb-sx.cn:1443";
 
 
 
@@ -65,7 +70,7 @@ public class UserOutboundServiceImpl extends BaseMybatisDao<CallLogMapper> imple
 
     private Map<String, Object> getAuthentication() {
         Map<String,Object> authentication=new HashMap<>();
-        authentication.put("customer","C322");
+        authentication.put("customer",customer);
         long timeMillis = System.currentTimeMillis();
         authentication.put("timestamp",timeMillis);
         authentication.put("seq",seq);

+ 6 - 0
src/main/resources/props/config_local.properties

@@ -93,3 +93,9 @@ easemob.client.secret=YXA61NHE0renI5N8gEgizoI5ivM9SYE
 jiguang.appKey=dbcea43366e038073452a04e
 jiguang.masterSecret=59792298288e4f635c737def
 jiguang.pushUrl=https://api.jpush.cn/v3/push
+#\u667A\u535A\u5929\u4E0B
+
+zbtx.customer=C328
+zbtx.seq=20241101
+zbtx.pwd=4321DD4A51B24C79FD1BE405A9D6AD98
+zbtx.version=2.0.6

+ 5 - 0
src/main/resources/props/config_test.properties

@@ -84,3 +84,8 @@ easemob.client.secret=YXA61NHE0renI5N8gEgizoI5ivM9SYE
 jiguang.appKey=dbcea43366e038073452a04e
 jiguang.masterSecret=59792298288e4f635c737def
 jiguang.pushUrl=https://api.jpush.cn/v3/push
+#\u667A\u535A\u5929\u4E0B
+zbtx.customer=C328
+zbtx.seq=20241101
+zbtx.pwd=4321DD4A51B24C79FD1BE405A9D6AD98
+zbtx.version=2.0.6