Skip to content

Instantly share code, notes, and snippets.

@wong2
Last active December 27, 2015 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wong2/7409580 to your computer and use it in GitHub Desktop.
Save wong2/7409580 to your computer and use it in GitHub Desktop.
抓呀抓毛毛
!function() {
var getLottery = function() {
var url = 'http://promotion.taobao.com/tmall/luckyCat.do?';
url += 'c24291a8ab24d18cd51be92e4b2eecce';
url += '&ruleId=1111';
url += '&RandomNum=' + new Date().getTime();
url += '&ua=' + encodeURIComponent(ua);
url += '&d=m';
KISSY.io({
url: url,
type: 'get',
dataType: 'jsonp',
success: function (d) {
console.log(d);
}
});
UA_Opt.Token = new Date().getTime() + ':' + Math.random();
UA_Opt.reload();
};
setInterval(getLottery, 100);
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment