可信代码库-AI修复建议接口地址修改
This commit is contained in:
@@ -268,14 +268,20 @@ export const getReleaseExport = (data): Promise<any> => {
|
|||||||
|
|
||||||
// 获取AI修复建议
|
// 获取AI修复建议
|
||||||
export function getVulSuggestion(data) {
|
export function getVulSuggestion(data) {
|
||||||
return axios.request({
|
return request({
|
||||||
url: '/gateway/detect' + `/ai/vul_suggestion`,
|
url: `/ai/vul_suggestion`,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data,
|
data,
|
||||||
headers: {
|
|
||||||
Authorization: 'Bearer ' + localStorage.getItem('access_token'),
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// return axios.request({
|
||||||
|
// url: '/gateway/detect' + `/ai/vul_suggestion`,
|
||||||
|
// method: 'POST',
|
||||||
|
// data,
|
||||||
|
// headers: {
|
||||||
|
// Authorization: 'Bearer ' + localStorage.getItem('access_token'),
|
||||||
|
// },
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
// 许可证信息详情
|
// 许可证信息详情
|
||||||
export const getLicenseDetail = ({ id }): Promise<any> => {
|
export const getLicenseDetail = ({ id }): Promise<any> => {
|
||||||
|
|||||||
Reference in New Issue
Block a user