0.1.17 • Published 4 years ago

@eht/egg-wechat v0.1.17

Weekly downloads
17
License
MIT
Repository
-
Last release
4 years ago

egg-wechat

集成了小程序、公众号的常规 api, 以及实现进程间、不同开发环境下的 token 同步

Install

$ yarn add eht@egg-wechat

Usage

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

Configuration

// {app_root}/config/config.default.js

exports.wechatMiniprogram = {
  client: {
    c1: {
      appid: 1,
      secret: secret1,
      sync_uri: 'https//:'    //远程同步路径
    }
  }
};

// 或者

exports.wechatMiniprogram = {
  clients: {
    c1: {
      appid: 1,
      secret: secret1,
      sync_uri: 'https//:'    //远程同步路径
    },
    c2: {
      appid: 2,
      secret: secret2,
      sync_uri: 'https//:'    //远程同步路径
    }
  }
};
0.1.16

4 years ago

0.1.17

4 years ago

0.1.15

4 years ago

0.1.12

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago