This commit is contained in:
Leo
2026-02-03 15:14:24 +08:00
parent 41078c63e6
commit 4c2803d911
2 changed files with 56 additions and 2 deletions

View File

@@ -118,6 +118,17 @@ export function getTbProductTypeMap() {
})
}
// 获取评论调用外部接口按商品ID/SKU拉取评论
const FETCH_COMMENTS_BASE = 'http://192.168.8.60:5008'
export function fetchComments(productId) {
return request({
url: FETCH_COMMENTS_BASE + '/fetch_comments',
method: 'get',
params: { product_id: productId },
headers: { isToken: false }
})
}
// 获取当前IP地址公开接口
export function getCurrentIP() {
return request({