```
.版本 2
.支持库 spec
.程序集 程序集1
.子程序 _启动子程序, 整数型, , 本子程序在程序启动后最先执行
简书测试例子 ()
返回 (0) ' 可以根据您的需要返回任意数值
.子程序 简书测试例子
.局部变量 url, 文本型
.局部变量 http, WinHttpW
.局部变量 str, 文本型
.局部变量 gt, 文本型
.局部变量 challenge, 文本型
url = “https://www.jianshu.com/captchas/new?t=1597663525639-5rs”
http.Auto (真)
http.Open (“GET”, url)
http.Send ()
str = http.GetResponseText ()
gt = 文本_取中间 (str, “gt” + #引号 + “:” + #引号, #引号)
challenge = 文本_取中间 (str, “challenge” + #引号 + “:” + #引号, #引号)
调试输出 (“gt=”, gt, “challenge=”, challenge)
.如果真 (gt ≠ “” 且 challenge ≠ “”)
极验识别 (gt, “https://www.jianshu.com/sign_in”, challenge)
.如果真结束
.子程序 极验识别, 文本型
.参数 gt, 文本型, , 所在网站极验的gt值
.参数 referer, 文本型, , 所在的页面来源地址
.参数 challenge, 文本型, 可空, 通过请求目标站配置项获取,每次获取到的challenge仅能使用一次。如网站为极验感知此参数可不填,比如拉钩
.局部变量 url, 文本型
.局部变量 appkey, 文本型, , , 后台的接口访问密钥
.局部变量 body, 文本型
.局部变量 handle_method, 文本型
.局部变量 response, 文本型
.局部变量 http, WinHttpW
.局部变量 ip, 文本型
.局部变量 username, 文本型
url = “http://api.z-fp.com/start_handle”
username = “qq” ' 你注册的用户名
appkey = “620369c8e674465d6eb50489cefeca24” ' 这里替换为你的密钥,这个为必传
handle_method = “three_on” ' 如果遇到特殊图像传supporttype =3 注意特殊图像比较贵 识别成功则扣30点
' // handle_method=three_on 第三代正常识别模式
' // handle_method=three_off 第三代离线识别模式
' // handle_method=two_on 第二代滑块正常识别模式
' // handle_method=two_off 第二代滑块离线识别模式
body = “username=” + username + “&appkey=” + appkey + “>=” + gt + “&referer=” + referer + “&challenge=” + challenge + “&supporttype=” + handle_method
http.Auto (真)
' 设置60秒超时
http.SetTimeouts (3000, 3000, 3000, 60000)
http.Open (“POST”, url)
http.Send (body)
response = http.GetResponseTextUtf8ToAnsi ()
调试输出 (response)
返回 (response)
```