diff --git a/miniapp/pages/merchant/index.vue b/miniapp/pages/merchant/index.vue index f3b3f70..7bf4a18 100644 --- a/miniapp/pages/merchant/index.vue +++ b/miniapp/pages/merchant/index.vue @@ -184,7 +184,7 @@ this.confirmVisible = false try { const api = this.pendingType === 'scan' ? scanVerify : codeVerify - await api({ code: this.pendingCode }) + await api({ couponCode: this.pendingCode }) this.showResult(true, '优惠券核销成功') } catch (err) { const msg = (err && err.message) || '核销失败,请重试' diff --git a/miniapp/utils/request.js b/miniapp/utils/request.js index 1b6e46e..830eb84 100644 --- a/miniapp/utils/request.js +++ b/miniapp/utils/request.js @@ -4,7 +4,8 @@ */ // 后台 API 基础地址,按环境配置 -const BASE_URL = 'http://localhost:5030' +// const BASE_URL = 'http://localhost:5030' +const BASE_URL = 'https://api.pli.shhmkjgs.cn' // 请求超时时间(毫秒) const TIMEOUT = 10000