UNPKG

express-wx

Version:

Express Router for building Wechat Offical Account Message Server easily, supporting loading request (message) handlers dynamically. 快速构建微信公众号消息后端,支持动态加载请求处理逻辑代码。

15 lines (14 loc) 535 B
import { WXRequest } from "./WXRequest"; import { WXResponse } from "./WXResponse"; import { WXRouter } from "./WXRouter"; export declare function signFields(arr: Array<string>, separator?: string): string; export declare function checkWXSignature(token: string, { nonce, signature, timestamp }: { nonce: any; signature: any; timestamp: any; }): boolean; export default function ReqProcess(req: WXRequest, res: WXResponse, next: any, wxRouter: WXRouter, reo: { req: any; res: any; next: any; }): Promise<void>;