fix: 更新API端点路径以匹配v2版本规范
This commit is contained in:
@@ -7,7 +7,7 @@ Page({
|
||||
code: ''
|
||||
},
|
||||
onLoad() {
|
||||
t.request('/v2/miniprogram/coupons', {}, !0).then((res) => {
|
||||
t.request('/v2/miniprogram/coupons/index', {}, !0).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.setData({
|
||||
tips: res.data.tips,
|
||||
@@ -23,7 +23,7 @@ Page({
|
||||
success: function (i) {
|
||||
console.log(i), wx.showLoading({
|
||||
title: ""
|
||||
}), e.globalData.qrcode = i.result, t.request("/v2/miniprogram/identify", i, !0).then(function (t) {
|
||||
}), e.globalData.qrcode = i.result, t.request("/v2/miniprogram/identify/index", i, !0).then(function (t) {
|
||||
console.log("data", t), wx.hideLoading();
|
||||
// 保存设备编号
|
||||
getApp().globalData.devicecode = t.data.devicecode || getApp().globalData.devicecode;
|
||||
|
||||
Reference in New Issue
Block a user