diff --git a/Application/Mobile/View/User/login.html b/Application/Mobile/View/User/login.html
index d25a26c11..f92c2dc7d 100644
--- a/Application/Mobile/View/User/login.html
+++ b/Application/Mobile/View/User/login.html
@@ -29,7 +29,7 @@
-
+
diff --git a/Application/Mobile/View/User/register.html b/Application/Mobile/View/User/register.html
index 87ca0f859..70db4d9d5 100644
--- a/Application/Mobile/View/User/register.html
+++ b/Application/Mobile/View/User/register.html
@@ -59,12 +59,20 @@
var tis = this,that = $(tis);
if (that.hasClass('disabled')) {return false;}
var mobile = $.trim($('#mobile').val());
+ var promoteId = parseInt("{:I('get.pid',0)}");
+ var gameId = parseInt("{:I('get.gid',0)}");
+ var data = {};
+ if (promoteId > 0 && gameId > 0) {
+ data = {'phone':mobile,'promote_id':promoteId,'game_id':gameId};
+ } else {
+ data = {'phone':mobile};
+ }
if (mobile) {
if (/^1[0-9]{10}$/.test(mobile)) {
$.ajax({
type:'POST',
url:'{:U("sendsafecode")}',
- data:{'phone':mobile},
+ data:data,
async: false,
dataType:"Json",
success:function(data){