Commit c85e4fa3 by 前端

接口

1 parent d2bb440b
import api from "~/utils/request/request.js"; import api from "~/utils/request/request.js";
export default { export default {
getCarBrandList(data = {}) { sparring(data = {}) {
return api.post( return api.post(
"scrm.api.carlife.common.getOnlyCarBrandList", "",
data, data,
[], [],
"/rop-scrm-carlife/router", "/router/sparring",
"scrm" "AI"
);
},
defense(data = {}) {
return api.post(
"",
data,
[],
"/router/defense",
"AI"
); );
}, },
} }
\ No newline at end of file \ No newline at end of file
...@@ -22,6 +22,7 @@ const productList = [{ ...@@ -22,6 +22,7 @@ const productList = [{
isAvailable: false isAvailable: false
} }
] ]
import aiApi from '../../../aiApi'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
...@@ -125,6 +126,9 @@ Page({ ...@@ -125,6 +126,9 @@ Page({
chatList, chatList,
showSpeechPopup:false showSpeechPopup:false
}) })
aiApi.sparring({}).then(res=>{
console.log(res)
})
}, },
//重置 //重置
resetChat() { resetChat() {
......
...@@ -75,6 +75,7 @@ const domain_items = { ...@@ -75,6 +75,7 @@ const domain_items = {
uat: { uat: {
dj: "https://dj.test.glsx.com.cn", dj: "https://dj.test.glsx.com.cn",
scrm: "https://scrm.test.glsx.com.cn", scrm: "https://scrm.test.glsx.com.cn",
AI: 'http://192.168.3.191:7864',
merchants: "https://rop-merchant.test.glsx.com.cn", merchants: "https://rop-merchant.test.glsx.com.cn",
}, },
prod: { prod: {
......
...@@ -25,6 +25,7 @@ class Request { ...@@ -25,6 +25,7 @@ class Request {
'content-type': 'application/x-www-form-urlencoded' 'content-type': 'application/x-www-form-urlencoded'
} : } :
{} {}
if(domainName != 'AI')
data = _this.getData(data, method, noSignAttr , domainName == 'merchants') data = _this.getData(data, method, noSignAttr , domainName == 'merchants')
// console.log('reqData',data?.sessionId); // console.log('reqData',data?.sessionId);
// delete // delete
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!