egg-zqsign

1.2.2 • Public • Published

egg-zqsign

NPM version

Install

$ npm i egg-zqsign --save

Usage

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

Configuration

// {app_root}/config/config.default.js
exports.zqsign = {
};

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

Example

const Controller = require('egg').Controller

class TController extends Controller {
  async index() {
    const user = {
      user_code: '6d888805-b2f8-4ba3-95da-9eff46b2f3c7-1',
      name: '名字必须是汉字',
      id_card_no: '666888200101010000',
      mobile: '13000000000',
    }
    this.ctx.body = await this.app.zqSign.personReg(user.user_code, user.name, user.id_card_no, user.mobile)
  }
}

module.exports = TController

Questions & Suggestions

Please open an issue here.

License

MIT

Package Sidebar

Install

npm i egg-zqsign

Weekly Downloads

0

Version

1.2.2

License

MIT

Unpacked Size

6.35 kB

Total Files

6

Last publish

Collaborators

  • liuyanjie