Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-school-app
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-school-app
Commits
23fddec7
Commit
23fddec7
authored
Apr 16, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改注册接口请求地址
parent
8e77c573
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
customer.ts
src/api/customer.ts
+4
-3
index.ts
src/api/index.ts
+2
-0
index.js
src/constants/index.js
+1
-0
No files found.
src/api/customer.ts
View file @
23fddec7
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
,
});
});
...
...
src/api/index.ts
View file @
23fddec7
...
@@ -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
);
...
...
src/constants/index.js
View file @
23fddec7
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment