fritx/qqface

PC从QQ复制/粘贴 Sysface/code对应

Opened this issue · 0 comments

fritx commented
var sysface = $node.attr('sysface')
if (sysface != null) {
  // var index = qqface.indexFromCode(+sysface)
  var index = qqface.sysfaceMap.indexOf(+sysface)
  if (index !== -1) $node.attr('src', 'main/img/face/' + index + '.gif')
}
// var sysfaceMap = [14,1,2,3,4,5,6,7,8,9,10,11,12,13,0,15,16,96,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,89,113,114,115,60,61,46,63,64,116,66,67,53,54,55,56,57,117,59,75,74,69,49,76,77,78,79,118,119,120,121,122,123,124,42,85,43,
// 41,86,125,126,127,128,129,130,131,132,133,134,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170]
// 125 <=> 131 调换顺序
var sysfaceMap = [14,1,2,3,4,5,6,7,8,9,10,11,12,13,0,15,16,96,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,89,113,114,115,60,61,46,63,64,116,66,67,53,54,55,56,57,117,59,75,74,69,49,76,77,78,79,118,119,120,121,122,123,124,42,85,43,
41,86,131,126,127,128,129,130,125,132,133,134,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170]

qqface.sysfaceMap = sysfaceMap