refactor: 统一接口调用为单前缀写法,去除 19 处页面内写死的 /mp-api(API_BASE 已含),并新增 check:api-prefix 防回归脚本
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
6e88f6b09d
commit
bba2571f25
@@ -233,7 +233,7 @@ async function fetchCards() {
|
||||
async function fetchEntryNotice() {
|
||||
if (entryNoticeLoaded.value) return
|
||||
try {
|
||||
const list = await post<BannerItem[]>('/mp-api/mpContent/queryList', { channel: 'pingxiang', type: 'ENTRY_NOTICE' })
|
||||
const list = await post<BannerItem[]>('/mpContent/queryList', { channel: 'pingxiang', type: 'ENTRY_NOTICE' })
|
||||
entryNotice.value = list?.[0]?.content || ''
|
||||
} catch {
|
||||
entryNotice.value = ''
|
||||
@@ -386,7 +386,7 @@ function onFeatureClick(item: { label: string }) {
|
||||
uni.showToast({ title: '请先选择一张旅游卡', icon: 'none' })
|
||||
return
|
||||
}
|
||||
post<any>('/mp-api/mpCard/checkFaceBind', { cardModelId: card.cardModelId, cardNumber: card.cardNo })
|
||||
post<any>('/mpCard/checkFaceBind', { cardModelId: card.cardModelId, cardNumber: card.cardNo })
|
||||
.then((res) => {
|
||||
if (res?.needBindFace) {
|
||||
showFaceModal.value = true
|
||||
|
||||
Reference in New Issue
Block a user