Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
028b87a7
"plus-admin/README.md" did not exist on "2971e3f17213da8f855556e0e8fe5492a762dbe0"
Commit
028b87a7
authored
Oct 23, 2019
by
季圣华
Browse files
去除干扰点和线
parent
60e27ccf
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/js/gVerify.js
View file @
028b87a7
...
...
@@ -89,21 +89,6 @@
ctx
.
rotate
(
-
deg
*
Math
.
PI
/
180
);
ctx
.
translate
(
-
x
,
-
y
);
}
/**绘制干扰线**/
for
(
var
i
=
0
;
i
<
4
;
i
++
)
{
ctx
.
strokeStyle
=
randomColor
(
40
,
180
);
ctx
.
beginPath
();
ctx
.
moveTo
(
randomNum
(
0
,
this
.
options
.
width
),
randomNum
(
0
,
this
.
options
.
height
));
ctx
.
lineTo
(
randomNum
(
0
,
this
.
options
.
width
),
randomNum
(
0
,
this
.
options
.
height
));
ctx
.
stroke
();
}
/**绘制干扰点**/
for
(
var
i
=
0
;
i
<
this
.
options
.
width
/
4
;
i
++
)
{
ctx
.
fillStyle
=
randomColor
(
0
,
255
);
ctx
.
beginPath
();
ctx
.
arc
(
randomNum
(
0
,
this
.
options
.
width
),
randomNum
(
0
,
this
.
options
.
height
),
1
,
0
,
2
*
Math
.
PI
);
ctx
.
fill
();
}
},
/**验证验证码**/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment