提交 b06734ea 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

set default back to chrome, for there has bug in phantomjs when call Wechaty.getUserName()

上级 315b80c5
......@@ -4,9 +4,9 @@
"description": "Wechat for Bot (Personal Account)",
"main": "index.js",
"wechaty": {
"DEFAULT_HEAD": "phantomjs",
"DEFAULT_HEAD": "chrome",
"DEFAULT_PUPPET": "web",
"DEFAULT_PROFILE": "default-profile-name",
"DEFAULT_PROFILE": "default-profile",
"DEFAULT_PORT": 8788,
"DEFAULT_PUPPET_PORT": 18788,
"DEFAULT_PROTOCOL": "io|0.0.1",
......
......@@ -8,8 +8,8 @@ Object.assign(Config, {
, endpoint: process.env.WECHATY_ENDPOINT || Config.ENDPOINT // wechaty.io api endpoint
, port: process.env.WECHATY_PORT || 0 // 0 for disable port
, profile: process.env.WECHATY_PROFILE
, token: process.env.WECHATY_TOKEN
, profile: process.env.WECHATY_PROFILE // DO NOT set to DEFAULT_PROFILE, because sometimes user do not want to save session
, token: process.env.WECHATY_TOKEN // DO NOT set to DEFAULT, because sometimes user do not want to connect to io cloud service
})
module.exports = Config.default = Config.Config = Config
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册