4.4探索数据 (#367)
This commit is contained in:
parent
14e58fc4ed
commit
f3ebf0b27c
|
@ -96,13 +96,7 @@ export class takeBirthdayPhoto extends plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
async getServer(uid) {
|
async getServer(uid) {
|
||||||
let uidPrefix = uid.toString()
|
switch (String(uid).slice(0, -8)) {
|
||||||
if (uidPrefix.length == 10) {
|
|
||||||
uidPrefix = uidPrefix.slice(0, 2)
|
|
||||||
} else {
|
|
||||||
uidPrefix = uidPrefix.slice(0, 1)
|
|
||||||
}
|
|
||||||
switch (uidPrefix) {
|
|
||||||
case '1':
|
case '1':
|
||||||
case '2':
|
case '2':
|
||||||
return 'cn_gf01'
|
return 'cn_gf01'
|
||||||
|
|
|
@ -8,22 +8,22 @@ avatar: 79
|
||||||
level: 60
|
level: 60
|
||||||
|
|
||||||
# 奇馈宝箱
|
# 奇馈宝箱
|
||||||
magic_chest: 221
|
magic_chest: 241
|
||||||
|
|
||||||
# 华丽宝箱
|
# 华丽宝箱
|
||||||
luxurious_chest: 242
|
luxurious_chest: 259
|
||||||
|
|
||||||
# 珍贵宝箱
|
# 珍贵宝箱
|
||||||
precious_chest: 632
|
precious_chest: 682
|
||||||
|
|
||||||
# 精致宝箱
|
# 精致宝箱
|
||||||
exquisite_chest: 2082
|
exquisite_chest: 2219
|
||||||
|
|
||||||
# 普通宝箱
|
# 普通宝箱
|
||||||
common_chest: 2867
|
common_chest: 2980
|
||||||
|
|
||||||
# 传送点
|
# 传送点
|
||||||
way_point: 400
|
way_point: 431
|
||||||
|
|
||||||
# 秘境
|
# 秘境
|
||||||
domain: 56
|
domain: 56
|
||||||
|
|
|
@ -50,13 +50,7 @@ export default class MysApi {
|
||||||
}
|
}
|
||||||
|
|
||||||
getServer() {
|
getServer() {
|
||||||
let uidPrefix = this.uid.toString()
|
switch (String(this.uid).slice(0, -8)) {
|
||||||
if (uidPrefix.length == 10) {
|
|
||||||
uidPrefix = uidPrefix.slice(0, 2)
|
|
||||||
} else {
|
|
||||||
uidPrefix = uidPrefix.slice(0, 1)
|
|
||||||
}
|
|
||||||
switch (uidPrefix) {
|
|
||||||
case '1':
|
case '1':
|
||||||
case '2':
|
case '2':
|
||||||
return this.isSr ? 'prod_gf_cn' : 'cn_gf01' // 官服
|
return this.isSr ? 'prod_gf_cn' : 'cn_gf01' // 官服
|
||||||
|
|
|
@ -55,18 +55,11 @@ export default class MysInfo {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
let uidPrefix = mysInfo.uid.toString()
|
if (!['1', '2', '3', '5', '6', '7', '8', '18', '9'].includes(String(mysInfo.uid).slice(0, -8))) {
|
||||||
if (uidPrefix.length == 10) {
|
|
||||||
uidPrefix = uidPrefix.slice(0, 2)
|
|
||||||
} else {
|
|
||||||
uidPrefix = uidPrefix.slice(0, 1)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!['1', '2', '3', '5', '6', '7', '8', '18', '9'].includes(uidPrefix)) {
|
|
||||||
// e.reply('只支持查询国服uid')
|
// e.reply('只支持查询国服uid')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (!['6', '7', '8', '18', '9'].includes(uidPrefix) && api === 'useCdk') {
|
if (!['6', '7', '8', '18', '9'].includes(String(mysInfo.uid).slice(0, -8)) && api === 'useCdk') {
|
||||||
e.reply('兑换码使用只支持国际服uid')
|
e.reply('兑换码使用只支持国际服uid')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue