- Gzh
微信公众号接口封装类
- rp
Created by jiangwei on 2020/06/30 . Copyright (c) 2020 ([email protected]). All rights reserved.
- encrypt(algorithm, content) ⇒
string
- sha1(content) ⇒
string
- md5(content) ⇒
string
- checkSignature(timestamp, nonce, token)
校验微信事件推送接口 验签
微信公众号接口封装类
Kind: global class
微信公众号接口封装类ALL GitHub.
发送客服消息
Kind: instance method of Gzh
Param | Type | Description |
---|---|---|
touser | string |
用户openid |
msgtype | string |
消息类型 [text] |
text | string |
发送文本内容 |
发送模板消息
Kind: instance method of Gzh
Param | Type |
---|---|
touser | string |
msgtype | * |
text | * |
获取微信服务器ip
Kind: instance method of Gzh
校验微信事件推送接口 验签
Kind: instance method of Gzh
Param | Type |
---|---|
timestamp | number |
nonce | number |
token | string | number |
Created by jiangwei on 2020/06/30 . Copyright (c) 2020 ([email protected]). All rights reserved.
Kind: global function
Param | Type |
---|---|
algorithm | string |
content | any |
Kind: global function
Param | Type |
---|---|
content | any |
Kind: global function
Param | Type |
---|---|
content | any |
校验微信事件推送接口 验签
Kind: global function
Param | Type |
---|---|
timestamp | number |
nonce | number |
token | string | number |