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
Plain Diff
Browse Files
Authored by
毕凯
8 years ago
Commit
97c57a64d900dd8639f1ffc61f4537c6f0cfd6cf
2 parents
51da54a8
9e2d3d4e
Merge branch 'feature/bugfix61' into 'release/6.1'
FROM See merge request
!939
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
apps/passport/controllers/reg.js
apps/passport/controllers/sms.js
apps/passport/models/bind-service.js
apps/passport/controllers/reg.js
View file @
97c57a6
...
...
@@ -85,6 +85,7 @@ class Reg {
let
inviteCode
=
req
.
body
.
inviteCode
||
''
;
let
isFromMy
=
_
.
get
(
req
.
session
,
'phoneReg.isFromMy'
,
'0'
);
let
token
=
req
.
body
.
token
;
let
clientIp
=
req
.
yoho
.
clientIp
||
''
;
let
from
=
req
.
cookies
.
from
||
'yohobuy'
;
// 购物车key
...
...
@@ -122,7 +123,7 @@ class Reg {
}
let
regMobileAesResult
=
yield
RegService
.
regMobileAes
(
area
,
mobile
,
password
,
shoppingKey
,
smsCode
,
inviteCode
,
isFromMy
,
from
);
shoppingKey
,
smsCode
,
inviteCode
,
isFromMy
,
clientIp
,
from
);
if
(
regMobileAesResult
.
code
!==
200
||
!
regMobileAesResult
.
data
||
!
regMobileAesResult
.
data
.
uid
)
{
...
...
apps/passport/controllers/sms.js
View file @
97c57a6
...
...
@@ -335,7 +335,7 @@ class SmsLogin {
let
resultCopy
=
null
;
RegService
.
regMobileAes
(
area
,
mobile
,
password
,
shoppingKey
,
registerCode
,
null
,
clientIp
,
from
).
then
(
result
=>
{
shoppingKey
,
registerCode
,
'0'
,
clientIp
,
from
).
then
(
result
=>
{
if
(
!
result
.
code
||
result
.
code
!==
200
)
{
return
res
.
send
(
result
);
}
...
...
apps/passport/models/bind-service.js
View file @
97c57a6
...
...
@@ -39,7 +39,7 @@ const BindService = {
code
:
code
});
},
bindMobile
(
openId
,
sourceType
,
mobile
,
area
,
password
,
nickname
,
from
)
{
bindMobile
(
openId
,
sourceType
,
mobile
,
area
,
password
,
from
,
nickname
)
{
let
params
=
{
method
:
'app.passport.bind'
,
mobile
:
mobile
,
...
...
Please
register
or
login
to post a comment