UNPKG

@tnwx/wxcp

Version:

TNWX 微信系开发脚手架之极速开发企业微信/企业号

35 lines (34 loc) 1.13 kB
import { MsgAdapter, QyJsApiType } from '@tnwx/commons'; /** * @author Javen * @copyright javendev@126.com * @description 处理企业微信消息以及事件 */ export declare class QyWeChat { /** * JSSDK签名 * @param nonce_str 随机字符串 * @param timestamp 时间戳 * @param url 当前网页的URL, 不包含#及其后面部分 * @param type QyJsApiType * @param jsapi_ticket jsapi_ticket */ static jssdkSignature(nonce_str: string, timestamp: string, url: string, type: QyJsApiType, jsapi_ticket?: string): Promise<string>; /** * 验证成为开发者 * @param signature * @param timestamp * @param nonce * @param echostr */ static checkSignature(signature: string, timestamp: string, nonce: string, echostr: string): string; /** * 处理消息 * @param msgAdapter * @param msgXml * @param msgSignature * @param timestamp * @param nonce */ static handleMsg(msgAdapter: MsgAdapter, msgXml: string, msgSignature?: string, timestamp?: string, nonce?: string): Promise<string>; }