Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
7 years ago
Commit
61dee877f52f6bb77941c65f1f22c2e1e0722421
1 parent
5beb9938
错误修复
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
apps/passport/controllers/sms.js
config/common.js
apps/passport/controllers/sms.js
View file @
61dee87
...
...
@@ -114,7 +114,7 @@ class SmsLogin {
if
(
!
req
.
xhr
||
step
!==
2
)
{
return
next
(
404
);
return
next
();
}
let
now
=
Date
.
now
();
...
...
@@ -182,7 +182,7 @@ class SmsLogin {
let
step
=
_
.
get
(
req
.
session
,
'smsLogin.step'
);
if
(
!
req
.
xhr
&&
step
!==
2
)
{
return
next
(
404
);
return
next
();
}
if
(
!
code
)
{
...
...
config/common.js
View file @
61dee87
...
...
@@ -11,8 +11,8 @@ const isProduction = process.env.NODE_ENV === 'production';
const
isTest
=
process
.
env
.
NODE_ENV
===
'test'
;
const
domains
=
{
api
:
'http://api.yoho.cn/'
,
service
:
'http://service.yoho.cn/'
,
api
:
'http://api.yoho.yohoops.org/'
,
service
:
'http://service.yoho.yohoops.org/'
,
liveApi
:
'http://testapi.live.yohops.com:9999/'
,
singleApi
:
'http://api-test3.yohops.com:9999/'
,
imSocket
:
'ws://socket.yohobuy.com:10240'
,
...
...
Please
register
or
login
to post a comment