Skip to content

maimai-tech/wx-check-domain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 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

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