update lib/config/qq.js.
Signed-off-by: touchscale <11134128+touchscale@user.noreply.gitee.com>
This commit is contained in:
parent
6fa6a72cff
commit
360b476e87
|
@ -32,16 +32,17 @@ export default async function createQQ () {
|
||||||
type: 'list',
|
type: 'list',
|
||||||
message: '请选择登录端口:',
|
message: '请选择登录端口:',
|
||||||
name: 'platform',
|
name: 'platform',
|
||||||
default: '5',
|
default: '6',
|
||||||
choices: ['iPad', '安卓手机', '安卓手表', 'MacOS', 'aPad'],
|
choices: ['old_Android', 'iPad', '安卓手机', '安卓手表', 'MacOS', 'aPad'],
|
||||||
filter: (val) => {
|
filter: (val) => {
|
||||||
switch (val) {
|
switch (val) {
|
||||||
|
case 'old_Android':return 6
|
||||||
case 'iPad':return 5
|
case 'iPad':return 5
|
||||||
case 'MacOS':return 4
|
case 'MacOS':return 4
|
||||||
case '安卓手机':return 1
|
case '安卓手机':return 1
|
||||||
case '安卓手表':return 3
|
case '安卓手表':return 3
|
||||||
case 'aPad':return 2
|
case 'aPad':return 2
|
||||||
default:return 5
|
default:return 6
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -69,7 +70,7 @@ export default async function createQQ () {
|
||||||
|
|
||||||
qq = qq.replace(/qq:/g, 'qq: ' + ret.QQ)
|
qq = qq.replace(/qq:/g, 'qq: ' + ret.QQ)
|
||||||
qq = qq.replace(/pwd:/g, `pwd: '${ret.pwd}'`)
|
qq = qq.replace(/pwd:/g, `pwd: '${ret.pwd}'`)
|
||||||
qq = qq.replace(/platform: [1-5]/g, 'platform: ' + Number(ret.platform))
|
qq = qq.replace(/platform: [1-6]/g, 'platform: ' + Number(ret.platform))
|
||||||
fs.writeFileSync(`${file}qq.yaml`, qq, 'utf8')
|
fs.writeFileSync(`${file}qq.yaml`, qq, 'utf8')
|
||||||
|
|
||||||
let bot = fs.readFileSync(`${fileDef}bot.yaml`, 'utf8')
|
let bot = fs.readFileSync(`${fileDef}bot.yaml`, 'utf8')
|
||||||
|
|
Loading…
Reference in New Issue