修复重大故障: JwtAuthenticationFilter文件,远程读取用户接口导致的服务器请求数量跑满
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { ShopMerchantApply, ShopMerchantApplyParam } from './model';
|
||||
import {COMMON_API_URL} from "~/config";
|
||||
import {SERVER_API_URL} from "~/config";
|
||||
|
||||
/**
|
||||
* 分页查询商户入驻申请
|
||||
@@ -40,7 +40,7 @@ export async function listShopMerchantApply(params?: ShopMerchantApplyParam) {
|
||||
*/
|
||||
export async function addShopMerchantApply(data: ShopMerchantApply) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
COMMON_API_URL + '/shop/shop-merchant-apply',
|
||||
SERVER_API_URL + '/shop/shop-merchant-apply',
|
||||
data
|
||||
);
|
||||
if (res.code === 0) {
|
||||
@@ -54,7 +54,7 @@ export async function addShopMerchantApply(data: ShopMerchantApply) {
|
||||
*/
|
||||
export async function updateShopMerchantApply(data: ShopMerchantApply) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
COMMON_API_URL + '/shop/shop-merchant-apply',
|
||||
SERVER_API_URL + '/shop/shop-merchant-apply',
|
||||
data
|
||||
);
|
||||
if (res.code === 0) {
|
||||
@@ -110,7 +110,7 @@ export async function getShopMerchantApply(id: number) {
|
||||
*/
|
||||
export async function getShopMerchantApplyByUserId() {
|
||||
const res = await request.get<ApiResult<ShopMerchantApply>>(
|
||||
COMMON_API_URL + '/shop/shop-merchant-apply/getByUserId'
|
||||
SERVER_API_URL + '/shop/shop-merchant-apply/getByUserId'
|
||||
);
|
||||
if (res.code === 0 && res.data) {
|
||||
return res.data;
|
||||
@@ -123,7 +123,7 @@ export async function getShopMerchantApplyByUserId() {
|
||||
*/
|
||||
export async function getShopMerchantApplyByPhone() {
|
||||
const res = await request.get<ApiResult<ShopMerchantApply>>(
|
||||
COMMON_API_URL + '/shop/shop-merchant-apply/getByPhone'
|
||||
SERVER_API_URL + '/shop/shop-merchant-apply/getByPhone'
|
||||
);
|
||||
if (res.code === 0 && res.data) {
|
||||
return res.data;
|
||||
|
||||
Reference in New Issue
Block a user