Skip to content

jxintang/wx-check-domain

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

检测域名被微信封禁

安装

npm i wx-check-domain

使用

var WxCheckDomain = require('wx-check-domain');

let checker = new WxCheckDomain('your app id ', 'your app secret', 'access_token save path');
let result = await checker.check('http://www.example.com/');
console.log('==== http://www.somebannedsites.com/ ', result); // { code: -1, msg: 'banned' }

let result1 = await checker.check('http://www.maimai.cn');
console.log('==== http://www.maimai.cn/ ', result1); // { code: 0, msg: 'ok' }

CHANGELOG

v2.0.0

  • 根据安全检测链接重定向的链接是否为安全链接来判断是否被微信封禁

v1.0.0

  • 检测是否被微信封禁
  • 本地存储access_token

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%