Commit 23fddec7 by 姜雷

修改注册接口请求地址

parent 8e77c573
import { customerFetch, ResponseDataEntity } from '.';
import { customerFetch, ResponseDataEntity, oldBaseFetch } from '.';
export class LoginParams {
/** 登陆标识 */
......@@ -48,8 +48,9 @@ type RegisiterPramas = {
// type RegisiterReponseData = {};
export const wxUserRegister = (entity: RegisiterPramas) =>
customerFetch({
url: '/dcxy/wechat/applet/register/',
oldBaseFetch({
// url: '/dcxy/wechat/applet/register/',
url: '/dcxy/api/customer/wxmini/register',
method: 'POST',
data: entity,
});
......
......@@ -6,6 +6,7 @@ import {
SCHOOL_MAIN_URL,
LogoutCode,
SuccessCode,
OLD_BASE_SERVER_URL,
} from '../constants/index';
export type ResponseDataEntity<T> = {
......@@ -54,6 +55,7 @@ const createFetch = (basePath: string) => {
};
export const baseFetch = createFetch(BASE_SERVER_URL);
export const oldBaseFetch = createFetch(OLD_BASE_SERVER_URL);
export const customerFetch = createFetch(CUSTOMER_SERVER_URL);
export const schoolMainFetch = createFetch(SCHOOL_MAIN_URL);
......
......@@ -3,6 +3,7 @@ export const SuccessCode = 1000;
export const LogoutCode = -2;
export const NotRegisterCode = 1005;
export const OLD_BASE_SERVER_URL = 'https://in-dev-selfbase.168cad.top';
export const BASE_SERVER_URL = 'https://ex-dev-dcxy-base-app.168cad.top';
export const CUSTOMER_SERVER_URL =
'https://ex-dev-dcxy-customer-app.168cad.top';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment