可信代码库-AI修复建议接口地址修改
This commit is contained in:
@@ -268,14 +268,20 @@ export const getReleaseExport = (data): Promise<any> => {
|
||||
|
||||
// 获取AI修复建议
|
||||
export function getVulSuggestion(data) {
|
||||
return axios.request({
|
||||
url: '/gateway/detect' + `/ai/vul_suggestion`,
|
||||
return request({
|
||||
url: `/ai/vul_suggestion`,
|
||||
method: 'POST',
|
||||
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> => {
|
||||
|
||||
Reference in New Issue
Block a user