Commit c85e4fa3 by 前端

接口

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