/egg-zmxy

zmxy for egg

Primary LanguageJavaScriptMIT LicenseMIT

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