Skip to content

Commit

Permalink
feat: add a function to judege a uin is alpha or not
Browse files Browse the repository at this point in the history
  • Loading branch information
caijw committed Oct 15, 2018
1 parent 5ca7ce4 commit 4aff9c8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions bin/tsw/util/auto-report/alpha.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,25 @@ this.isAlpha = function(req) {
return uinMap[uin] || TSW.getAlphaUinMapSync()[uin];
};

this.isAlphaUin = function (uin) {
if(!uin){
return false;
}
const TSW = require('api/keyman');
const config = require('config');

if (uin && isWin32Like) {
// windows 抓包用
if (config.skyMode) {
return true;
}
}

const uinMap = global[__filename] || {};

return uinMap[uin] || TSW.getAlphaUinMapSync()[uin];
};

this.getUin = function(req) {
const config = require('config');

Expand Down

0 comments on commit 4aff9c8

Please sign in to comment.