|
@@ -187,6 +187,9 @@ public class GeTuiUtils {
|
|
}
|
|
}
|
|
|
|
|
|
public void callPhone(String userId) throws Exception {
|
|
public void callPhone(String userId) throws Exception {
|
|
|
|
+ CommonStaff commonStaff= commonStaffMapper.selectById(userId);
|
|
|
|
+ System.out.println("result = " + commonStaff.getStaffName());
|
|
|
|
+ System.out.println("----------------------");
|
|
// 电话信息
|
|
// 电话信息
|
|
|
|
|
|
/*请修改为平台分配的accountId*/
|
|
/*请修改为平台分配的accountId*/
|
|
@@ -196,7 +199,7 @@ public class GeTuiUtils {
|
|
VoiceNotifyBody message = new VoiceNotifyBody();
|
|
VoiceNotifyBody message = new VoiceNotifyBody();
|
|
/*用户接收回执的服务器地址*/
|
|
/*用户接收回执的服务器地址*/
|
|
message.setCallbackUrl("http://192.168.1.102:9780/voice/api/VoiceWeb/receiveRecord");
|
|
message.setCallbackUrl("http://192.168.1.102:9780/voice/api/VoiceWeb/receiveRecord");
|
|
- CommonStaff commonStaff= commonStaffMapper.selectById(userId);
|
|
|
|
|
|
+// CommonStaff commonStaff= commonStaffMapper.selectById(userId);
|
|
// message.setCalleeNumber("18840825257");
|
|
// message.setCalleeNumber("18840825257");
|
|
if(commonStaff != null){
|
|
if(commonStaff != null){
|
|
message.setCalleeNumber(commonStaff.getStaffMobilePhone());
|
|
message.setCalleeNumber(commonStaff.getStaffMobilePhone());
|
|
@@ -205,7 +208,7 @@ public class GeTuiUtils {
|
|
message.setDisplayNumber("");
|
|
message.setDisplayNumber("");
|
|
|
|
|
|
/*设置平台分配的模板ID*/
|
|
/*设置平台分配的模板ID*/
|
|
- message.setTemplateId("401045");
|
|
|
|
|
|
+ message.setTemplateId("401047");
|
|
|
|
|
|
LinkedHashMap<String,String> params = new LinkedHashMap<String,String>();
|
|
LinkedHashMap<String,String> params = new LinkedHashMap<String,String>();
|
|
/*设置模板参数*/
|
|
/*设置模板参数*/
|