egg-zmxy
v1.0.0
Published
zmxy for egg
Downloads
1
Readme
egg-zmxy
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.