UNPKG

@fangcha/backend-kit

Version:
19 lines 624 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WecomHelper = void 0; const main_1 = require("../main"); const bot_kit_1 = require("@fangcha/bot-kit"); class WecomHelper { static makeWecomProxy(botKey, env) { env = env || main_1._FangchaState.env; const proxy = new bot_kit_1.WecomProxy({}); if (!['staging', 'production'].includes(env)) { proxy.setMuteMode(true); } proxy.setTag(env); proxy.setRetainedBotKey(botKey); return proxy; } } exports.WecomHelper = WecomHelper; //# sourceMappingURL=WecomHelper.js.map