From 028b87a70116a41d01922f92ac0e3eefe689d530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Wed, 23 Oct 2019 20:50:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=B9=B2=E6=89=B0=E7=82=B9?= =?UTF-8?q?=E5=92=8C=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/js/gVerify.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/erp_web/js/gVerify.js b/erp_web/js/gVerify.js index c94c50bb..71427ade 100644 --- a/erp_web/js/gVerify.js +++ b/erp_web/js/gVerify.js @@ -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(); - } }, /**验证验证码**/