Showing
1 changed file
with
8 additions
and
4 deletions
@@ -30,12 +30,14 @@ function getUrlParam(name) { | @@ -30,12 +30,14 @@ function getUrlParam(name) { | ||
30 | 30 | ||
31 | $receive.on('click', function() { | 31 | $receive.on('click', function() { |
32 | var $curDom = $(this), | 32 | var $curDom = $(this), |
33 | - req; | 33 | + req = ''; |
34 | 34 | ||
35 | if (getUrlParam('app_version')) { | 35 | if (getUrlParam('app_version')) { |
36 | - req = '&app_version=' + getUrlParam('app_version'); | ||
37 | - } else { | ||
38 | - req = ''; | 36 | + req += '&app_version=' + getUrlParam('app_version'); |
37 | + } | ||
38 | + | ||
39 | + if (getUrlParam('uid')) { | ||
40 | + req += '&uid=' + getUrlParam('uid'); | ||
39 | } | 41 | } |
40 | 42 | ||
41 | $.ajax({ | 43 | $.ajax({ |
@@ -48,6 +50,8 @@ $receive.on('click', function() { | @@ -48,6 +50,8 @@ $receive.on('click', function() { | ||
48 | var msg = data.msg, | 50 | var msg = data.msg, |
49 | status = data.status, | 51 | status = data.status, |
50 | newUrl = data.url + '?code=' + getUrlParam('code'); | 52 | newUrl = data.url + '?code=' + getUrlParam('code'); |
53 | + | ||
54 | + | ||
51 | if (data.isApp === true) { | 55 | if (data.isApp === true) { |
52 | newUrl = data.url; | 56 | newUrl = data.url; |
53 | } | 57 | } |
-
Please register or login to post a comment