|
|
@@ -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);
|