Commit 23fddec7 by 姜雷

修改注册接口请求地址

parent 8e77c573
import { customerFetch, ResponseDataEntity } from '.'; import { customerFetch, ResponseDataEntity, oldBaseFetch } from '.';
export class LoginParams { export class LoginParams {
/** 登陆标识 */ /** 登陆标识 */
...@@ -48,8 +48,9 @@ type RegisiterPramas = { ...@@ -48,8 +48,9 @@ type RegisiterPramas = {
// type RegisiterReponseData = {}; // type RegisiterReponseData = {};
export const wxUserRegister = (entity: RegisiterPramas) => export const wxUserRegister = (entity: RegisiterPramas) =>
customerFetch({ oldBaseFetch({
url: '/dcxy/wechat/applet/register/', // url: '/dcxy/wechat/applet/register/',
url: '/dcxy/api/customer/wxmini/register',
method: 'POST', method: 'POST',
data: entity, data: entity,
}); });
......
...@@ -6,6 +6,7 @@ import { ...@@ -6,6 +6,7 @@ import {
SCHOOL_MAIN_URL, SCHOOL_MAIN_URL,
LogoutCode, LogoutCode,
SuccessCode, SuccessCode,
OLD_BASE_SERVER_URL,
} from '../constants/index'; } from '../constants/index';
export type ResponseDataEntity<T> = { export type ResponseDataEntity<T> = {
...@@ -54,6 +55,7 @@ const createFetch = (basePath: string) => { ...@@ -54,6 +55,7 @@ const createFetch = (basePath: string) => {
}; };
export const baseFetch = createFetch(BASE_SERVER_URL); export const baseFetch = createFetch(BASE_SERVER_URL);
export const oldBaseFetch = createFetch(OLD_BASE_SERVER_URL);
export const customerFetch = createFetch(CUSTOMER_SERVER_URL); export const customerFetch = createFetch(CUSTOMER_SERVER_URL);
export const schoolMainFetch = createFetch(SCHOOL_MAIN_URL); export const schoolMainFetch = createFetch(SCHOOL_MAIN_URL);
......
...@@ -3,6 +3,7 @@ export const SuccessCode = 1000; ...@@ -3,6 +3,7 @@ export const SuccessCode = 1000;
export const LogoutCode = -2; export const LogoutCode = -2;
export const NotRegisterCode = 1005; 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 BASE_SERVER_URL = 'https://ex-dev-dcxy-base-app.168cad.top';
export const CUSTOMER_SERVER_URL = export const CUSTOMER_SERVER_URL =
'https://ex-dev-dcxy-customer-app.168cad.top'; '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