Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
2017-02-09 14:39:27 +0800
Commit
8f8073a691945ba4a3a51a1dddc70d1672a39684
1 parent
278d9216
check captcha
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
16 deletions
public/js/3party/robot-check.page.js
public/js/3party/robot-check/api.js
public/js/3party/robot-check.page.js
View file @
8f8073a
var
$
=
require
(
'yoho-jquery'
),
Captcha
=
require
(
'../plugins/captcha'
);
var
captcha
=
new
Captcha
(
'.captcha-wrap'
,
{
checkURI
:
'/3party/check'
}).
init
();
...
...
public/js/3party/robot-check/api.js
deleted
100644 → 0
View file @
278d921
var
$
=
require
(
'yoho-jquery'
);
require
(
'../../common/promise'
);
exports
.
check
=
function
(
captcha
)
{
return
$
.
post
(
'/3party/check'
,
{
verifyCode
:
captcha
}).
then
(
function
(
result
)
{
if
(
result
.
code
!==
200
)
{
}
else
{
}
});
};
Please
register
or
login
to post a comment