好友
阅读权限10
听众
最后登录1970-1-1
|
一头雾水的 js
qq () {
this.encodeUin = this.encodeUin.replace('*S1*', '')
const table = {
"oe": 0, "n": 0, "z": 0,
"oK": 1, "6": 1, "5": 1,
"ow": 2, "-": 2, "A": 2,
"oi": 3, "o": 3, "i": 3,
"7e": 4, "v": 4, "P": 4,
"7K": 5, "4": 5, "k": 5, "7v": 5,
"7w": 6, "C": 6, "s": 6,
"7i": 7, "S": 7, "l": 7,
"Ne": 8, "c": 8, "F": 8,
"NK": 9, "E": 9, "q": 9,
'*': 'X'
};
let ret = ''
for (let i = 0, code = ''; i < this.encodeUin.length; i++) {
code = this.encodeUin[i] + (this.encodeUin[i + 1] || '')
if (table[code] !== undefined) {
ret += '' + table[code]
i++
} else {
code = this.encodeUin[i]
if (table[code] !== undefined) {
ret += table[code]
} else {
ret += table['*']
}
}
}
return ret |
|