yaohua / geetet
这是一个验证码
v1.0.3
2019-08-22 16:47 UTC
Requires
- php: >=5.6
This package is auto-updated.
Last update: 2024-09-23 04:32:26 UTC
README
这是一个滑动验证码
API 示例
<?php namespace demo { public partial class GetCaptcha : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Response.ContentType = "application/json"; Response.Write(getCaptcha()); Response.End(); } private String getCaptcha() { GeetestLib geetest = new GeetestLib(GeetestConfig.publicKey, GeetestConfig.privateKey); String userID = "test"; Byte gtServerStatus = geetest.preProcess(userID,"web","127.0.0.1"); Session[GeetestLib.gtServerStatusSessionKey] = gtServerStatus; Session["userID"] = userID; return geetest.getResponseStr(); } } }
"yaohua/geetet": "~1.0"
或者运行
composer require yaohua/geetet