From 7376d4d8908683dfbf921a63f31195f2108521e5 Mon Sep 17 00:00:00 2001 From: paulGao Date: Thu, 17 Feb 2022 14:54:18 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dapi=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/api/account.js | 12 ++++++------ buyer/src/api/member.js | 4 ++-- buyer/src/api/shopentry.js | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/buyer/src/api/account.js b/buyer/src/api/account.js index d0058117..ca80a7f6 100644 --- a/buyer/src/api/account.js +++ b/buyer/src/api/account.js @@ -11,7 +11,7 @@ import request, {Method} from '@/plugins/request.js' // 获取密码状态 export function getPwdStatus (params) { return request({ - url: '/buyer/passport/members/wallet/check', + url: '/buyer/passport/member/wallet/check', method: Method.GET, needToken: true, params @@ -21,7 +21,7 @@ export function getPwdStatus (params) { // 设置密码 export function setPwd (params) { return request({ - url: '/buyer/passport/members/wallet/set-password', + url: '/buyer/passport/member/wallet/set-password', method: Method.POST, needToken: true, data: params @@ -31,7 +31,7 @@ export function setPwd (params) { // 设置支付密码 export function setUpdatePwdOrdinary (params) { return request({ - url: '/buyer/passport/members/wallet/update-password/ordinary', + url: '/buyer/passport/member/wallet/update-password/ordinary', method: Method.GET, needToken: true, data: params @@ -41,7 +41,7 @@ export function setUpdatePwdOrdinary (params) { // 修改会员资料 export function editMemberInfo (params) { return request({ - url: '/buyer/passport/members/editOwn', + url: '/buyer/passport/member/editOwn', method: Method.PUT, needToken: true, data: params @@ -51,7 +51,7 @@ export function editMemberInfo (params) { // 修改密码 export function editPwd (params) { return request({ - url: `/buyer/passport/members/modifyPass`, + url: `/buyer/passport/member/modifyPass`, method: Method.PUT, needToken: true, data: params @@ -61,7 +61,7 @@ export function editPwd (params) { // 获取密码状态 export function logout () { return request({ - url: '/buyer/passport/members/logout', + url: '/buyer/passport/member/logout', method: Method.POST, needToken: true }) diff --git a/buyer/src/api/member.js b/buyer/src/api/member.js index 5cfe167d..07226853 100644 --- a/buyer/src/api/member.js +++ b/buyer/src/api/member.js @@ -3,7 +3,7 @@ import request, {Method} from '@/plugins/request.js'; // 查询账户余额 export function getMembersWallet () { return request({ - url: '/buyer/passport/members/wallet', + url: '/buyer/passport/member/wallet', method: Method.GET, needToken: true }); @@ -52,7 +52,7 @@ export function recharge (params) { // 提现 export function withdrawalApply (params) { return request({ - url: '/buyer/passport/members/wallet/withdrawal', + url: '/buyer/passport/member/wallet/withdrawal', method: Method.POST, needToken: true, data: params diff --git a/buyer/src/api/shopentry.js b/buyer/src/api/shopentry.js index 861800cf..96aa08f8 100644 --- a/buyer/src/api/shopentry.js +++ b/buyer/src/api/shopentry.js @@ -53,7 +53,7 @@ export function getDetailById (id) { // 店铺分类 export function getCateById (id) { return request({ - url: `/buyer/goods/store/label/get/${id}`, + url: `/buyer/store/store/label/get/${id}`, needToken: true, method: Method.GET }) From 44086e8bf405fcecb21e2de38fcd4e0ff985e688 Mon Sep 17 00:00:00 2001 From: paulGao Date: Thu, 17 Feb 2022 15:32:56 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/api/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buyer/src/api/common.js b/buyer/src/api/common.js index a508640f..e8b4fa84 100644 --- a/buyer/src/api/common.js +++ b/buyer/src/api/common.js @@ -88,7 +88,7 @@ export function articleDetail (id) { // 获取IM接口前缀 export function getIMDetail () { return request({ - url: `${commonUrl}/common/IM`, + url: `${commonUrl}/common/common/IM`, method: Method.GET }); }