Feat(云灵AI):对话接口对接完成

This commit is contained in:
lifizer
2025-03-27 18:26:26 +08:00
parent 615b89c8a5
commit aaf2e74cbb
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -85,6 +85,11 @@ function baseRequest(options) {
// 发起请求
return http[options.method](url, _params).then(res => {
// AI对话某个请求返回为空需要处理这种情况
if (['get', 'GET'].includes(options.method) && _params.params.isNoNeedPublicErrorNotification === 1) {
console.log('----')
return Promise.resolve({})
}
const resData = res.data || {};
if (res.statusCode !== 200) {
return Promise.reject({msg: "请求失败", res, resData});