1.0.0 • Published 6 years ago

egg-zmxy v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

egg-zmxy

NPM version build status Test coverage David deps Known Vulnerabilities npm download

egg plugin for zmxy

Install

$ npm i egg-zmxy --save

Dependencies

Usage

// {app_root}/config/plugin.js
exports.zmxy = {
  enable: true,
  package: 'egg-zmxy',
};

Configuration

// {app_root}/config/config.default.js
exports.zmxy = {
  appId: '',
  appPrivateKeyPath: '',
  zmxyPublicKeyPath: ''
};

see config/config.default.js for more detail.

Example

await this.app.zmxy.verifyIvs({
  name: '张三',
  cert_no: '532926200804058748'
}).then(({ result }) => {
  console.log(result)
}).catch((err) => {
  console.error(err)
})

Questions & Suggestions

Please open an issue here.

License

MIT