We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
公众号部署目前仅只支持源码部署配置
修改文件src/office.js文件变量
src/office.js
import {WechatyBuilder} from 'wechaty' import {WechatyWebPanelPlugin} from 'wechaty-web-panel' import {PuppetOA} from 'wechaty-puppet-official-account' const name = 'office-assistant-pro'; let bot = ''; const oa = new PuppetOA({ appId : '公众号appid', appSecret : '公众号appSecret', token : '公众号加密token', // personalMode: true, // 如果你是个人订阅号或者未认证 请开启此项 // port 和 webhookProxyUrl 自己选择一个 // port: 8077, // 有自己域名或者服务器 可以启用这个 服务启动的端口 自己映射好配到公众号后台机就行 webhookProxyUrl: 'https://****.loca.lt' // 如果没有自己的域名可以直接用默认自带穿透代理服务localtunnel ***替换成随机字符串即可 这个域名记得配置到公众号后台 }) bot = WechatyBuilder.build({ name, // generate xxxx.memory-card.json and save login data for the next login puppet: oa, }); bot .use( WechatyWebPanelPlugin({ apiKey: '****', apiSecret: '****' } )) bot.start() .catch((e) => console.error(e));
执行命令:npm run office,服务器对外暴露端口,绑定域名,配置到公众号后台
npm run office
The text was updated successfully, but these errors were encountered:
No branches or pull requests
公众号部署目前仅只支持源码部署配置
修改文件
src/office.js
文件变量执行命令:
npm run office
,服务器对外暴露端口,绑定域名,配置到公众号后台The text was updated successfully, but these errors were encountered: