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
htoooth
7 years ago
Commit
40e2143a510eb0e1e4210419e15ddc5a74dabf43
1 parent
c21678ce
fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
apps/passport/controllers/captcha.js
apps/passport/models/imgcheck.js
apps/passport/controllers/captcha.js
View file @
40e2143
...
...
@@ -2,7 +2,6 @@
const
imgCheckServiceModel
=
require
(
'../models/imgcheck'
);
const
request
=
require
(
'request'
);
const
config
=
global
.
yoho
.
config
;
exports
.
get
=
(
req
,
res
,
next
)
=>
{
let
data
=
{
...
...
@@ -31,8 +30,7 @@ exports.imgCheck = (req, res, next) => {
'X-request-ID'
:
req
.
reqID
||
''
,
'X-YOHO-IP'
:
req
.
yoho
.
clientIp
||
''
,
'X-Forwarded-For'
:
req
.
yoho
.
clientIp
||
''
,
'User-Agent'
:
'yoho/nodejs'
,
client_type
:
config
.
app
'User-Agent'
:
'yoho/nodejs'
}
}).
pipe
(
res
);
// eslint-disable-line
}
...
...
apps/passport/models/imgcheck.js
View file @
40e2143
...
...
@@ -2,6 +2,7 @@
const
PAGE
=
'H5'
;
const
logger
=
global
.
yoho
.
logger
;
const
serviceAPI
=
global
.
yoho
.
ServiceAPI
.
ApiUrl
;
const
config
=
global
.
yoho
.
config
;
module
.
exports
=
class
extends
global
.
yoho
.
BaseModel
{
constructor
(
ctx
)
{
...
...
@@ -16,7 +17,7 @@ module.exports = class extends global.yoho.BaseModel {
return
Promise
.
resolve
({
code
:
200
,
data
:
{
verifiedGraphicCode
:
`
$
{
serviceAPI
}
passport
/
img
-
check
.
jpg
?
udid
=
$
{
udid
}
&
fromPage
=
$
{
PAGE
}
`
verifiedGraphicCode
:
`
$
{
serviceAPI
}
passport
/
img
-
check
.
jpg
?
udid
=
$
{
udid
}
&
fromPage
=
$
{
PAGE
}
&
client_type
=
$
{
config
.
app
}
`
}
});
}
...
...
Please
register
or
login
to post a comment