egg-zmxy

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i egg-zmxy

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

6.75 kB

Total Files

6

Last publish

Collaborators

  • reezon