Skip to content
Eric edited this page Dec 30, 2015 · 1 revision

1、格式要求是json

2、格式规范:

{
  "app": {
    "id": "",   
    "secret": "",
    "token": ""
  },
  "oauth": {
    "state": "STATE",   //必须有值
    "scope": 0          //目前只能取[0,1]两个值
  },
  "merchant": {
    "id": ,             //商户的ID              
    "key": ""           //商户的key
  },
  "certificate": {
    "file": "",           //HTTPS证书的地址
    "key": ""             //证书的私钥,一般是商户号
  },
  "message": {
    "aes": "aes"          //加密的AES字符串
  },
  "server": {
    "host":"",            //网站的host
    "prefix": "weixin"    //网站处理微信的前缀,不能为空
  }
}
Clone this wiki locally