yaohua/geetet

这是一个验证码

维护者

详细信息

github.com/H-pinke/geetet

源代码

问题

安装: 5

依赖: 0

建议者: 0

安全: 0

星星: 1

关注者: 1

分支: 0

开放问题: 0

类型:l

v1.0.3 2019-08-22 16:47 UTC

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

官方地址

https://docs.geetest.com/install/deploy/server/csharp