ai话术
This commit is contained in:
parent
4491548aea
commit
96cdf875b2
|
@ -48,7 +48,7 @@ public class AiServiceImpl implements IAiService
|
|||
private StringRedisTemplate redisTemplate;
|
||||
|
||||
private String userSn = "SYSUSER|8398f13f3feccef770ee4d465fe22fbf";
|
||||
private String projectSn1 = "projects|00dd4cb88fc5f777d5c578c0fdb6b3a0";
|
||||
private String aiUserSn = "SYSUSER|2665bcca63a2b5c724095fa01dce0470";
|
||||
|
||||
private String login() {
|
||||
String url = "https://ai002.ciopaas.com/api/login";
|
||||
|
@ -117,7 +117,7 @@ public class AiServiceImpl implements IAiService
|
|||
// String aKey, String phoneNo, String virtualPhone, String dialTaskMainSn
|
||||
String phoneNo = busOrderInfo.getPrivcyPhone().split(",")[0];
|
||||
String virtualPhone = busOrderInfo.getPrivcyPhone().split(",")[1];
|
||||
String requestJson = "{\"api_key\": \"" + aKey + "\",\"user_sn\": \"" + userSn + "\",\"source\": \"测试任务\",\"project_sn\": \"" + projectSn1 + "\",\"ai_user_sn\": \"SYSUSER|2665bcca63a2b5c724095fa01dce0470\",\"is_zidong\": \"on\",\"client_info_json\": {\"data\": [{\"姓名\": \"客户\",\"电话\": \"" + phoneNo + "\",\"备注\": \"门店新客\",\"虚拟分机号\": \"" + virtualPhone + "\"}]},\"is_open_second_dialing\": \"1\",\n" +
|
||||
String requestJson = "{\"api_key\": \"" + aKey + "\",\"user_sn\": \"" + userSn + "\",\"source\": \"测试任务\",\"project_sn\": \"" + content + "\",\"ai_user_sn\": \""+aiUserSn+"\",\"is_zidong\": \"on\",\"client_info_json\": {\"data\": [{\"姓名\": \"客户\",\"电话\": \"" + phoneNo + "\",\"备注\": \"下单"+busOrderInfo.getOrderCount()+"次\",\"虚拟分机号\": \"" + virtualPhone + "\"}]},\"is_open_second_dialing\": \"1\",\n" +
|
||||
"\"is_open_remove_duplication\": \"0\",\"dial_task_main_sn\": \"" + dialTaskMainSn + "\",\"is_append\": \"1\"}";
|
||||
String requestUrl = "https://ai002.ciopaas.com/api/addJsonOfAsync";
|
||||
Map<String, String> header = new HashMap<>();
|
||||
|
@ -247,7 +247,7 @@ public class AiServiceImpl implements IAiService
|
|||
Map<String, String> header = new HashMap<>();
|
||||
header.put("Accept", "application/json");
|
||||
header.put("Content-Type", "application/json;charset=utf-8");
|
||||
String requestJson = "{\"api_key\": \"" + apiKey + "\",\"user_sn\": \"" + userSn + "\",\"source\": \"商户\",\"project_sn\": \"" + projectSn1 + "\",\"ai_user_sn\": \"SYSUSER|2665bcca63a2b5c724095fa01dce0470\",\"is_zidong\": \"on\",\"client_info_json\": {\"data\": [{\"姓名\": \"客户\",\"电话\": \"" + phoneNo + "\",\"备注\": \"客户\",\"虚拟分机号\": \"" + virtualPhone + "\"}]},\"is_open_second_dialing\": \"1\",\n" +
|
||||
String requestJson = "{\"api_key\": \"" + apiKey + "\",\"user_sn\": \"" + userSn + "\",\"source\": \"商户\",\"project_sn\": \"" + content + "\",\"ai_user_sn\": \""+aiUserSn+"\",\"is_zidong\": \"on\",\"client_info_json\": {\"data\": [{\"姓名\": \"客户\",\"电话\": \"" + phoneNo + "\",\"备注\": \"下单"+busOrderInfo.getOrderCount()+"次\",\"虚拟分机号\": \"" + virtualPhone + "\"}]},\"is_open_second_dialing\": \"1\",\n" +
|
||||
"\"is_open_remove_duplication\": \"0\",\"is_append\": \"0\"}";
|
||||
String requestUrl = "https://ai002.ciopaas.com/api/addJsonOfAsync";
|
||||
String requestResult = HttpClientUtilT.doPostJson(requestUrl, header, requestJson);
|
||||
|
|
Loading…
Reference in New Issue