Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c85e4fa3
authored
May 10, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
接口
1 parent
d2bb440b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
4 deletions
packageEquity/aiApi.js
packageEquity/pages/aiCheck/chat/chat.js
utils/request/environment.js
utils/request/request.js
packageEquity/aiApi.js
View file @
c85e4fa
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
packageEquity/pages/aiCheck/chat/chat.js
View file @
c85e4fa
...
...
@@ -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
()
{
...
...
utils/request/environment.js
View file @
c85e4fa
...
...
@@ -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
:
{
...
...
utils/request/request.js
View file @
c85e4fa
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment