geeteam / gt-node-sdk Goto Github PK
View Code? Open in Web Editor NEWGtWeb Node SDK
GtWeb Node SDK
重新拉下代码gt.js就没有了?
什么时候考虑 支持 promise 呢?
class Geetest extends require('geetest') {
constructor() {
super(...arguments)
}
register() {
return new Promise((resolve, reject) => {
super.register((err, data) => {
if (err) reject(data)
else resolve(data)
})
})
}
}
var geetest = require('geetest')('YOUR_PRIVATE_KEY', ['YOUR_PUBLIC_KEY');
['YOUR_PUBLIC_KEY'
前面的 [
是手误打错了么
应该不是我没看到而是真的没有吧。就是Node生成图片麻烦才用的极验哇,现在failback就是去图形验证码还是绕不开啊。。。(不过我的网站宕机时间应该比极验长多了把。。雾
可以把http请求的error事件直接抛出来吗?!!!!
代码写的完全不符合NODE的规范啊!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.