Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
ant-admin-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 502ea066
authored
2018-01-31 18:10:34 +0800
by
ethanlamzs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
登陆协议
1 parent
63efad97
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
.roadhogrc.mock.js
.roadhogrc.mock.js
View file @
502ea06
...
...
@@ -77,24 +77,33 @@ const proxy = {
const
{
secret
,
account
,
type
}
=
req
.
body
;
if
(
secret
===
'888888'
&&
account
===
'admin'
){
res
.
send
({
token
:{
value
:
'xxxxxxx---xxxxx----xxxx'
},
ext
:{
status
:
'ok'
,
type
,
currentAuthority
:
'admin'
}
});
return
;
}
if
(
secret
===
'123456'
&&
account
===
'user'
){
res
.
send
({
token
:{
value
:
'xxxxxxx---xxxxx----xxxx'
},
ext
:{
status
:
'ok'
,
type
,
currentAuthority
:
'user'
}
});
return
;
}
res
.
send
({
token
:{
value
:
'xxxxxxx---xxxxx----xxxx'
},
ext
:{
status
:
'error'
,
type
,
currentAuthority
:
'guest'
}
});
},
'POST /api/register'
:
(
req
,
res
)
=>
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment