@@ -806,7 +806,7 @@ var PhoneObj = {
}
$.ajax({
type: 'POST',
- url: 'mobile.php?s=/Ssg/userRegister.html',
+ url: 'mobile.php?s=/Common/userRegister.html',
dataType: 'JSON',
data:{
account: account,
From 4b46cd45633b3fff14ae233a326acaa299ae4382 Mon Sep 17 00:00:00 2001
From: ELF <360197197@qq.com>
Date: Wed, 25 Dec 2019 18:20:19 +0800
Subject: [PATCH 06/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Home/View/default/Home/landingPage.html | 2 +-
Application/Mobile/Controller/CommonController.class.php | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html
index 03b508eb2..c5126a27a 100644
--- a/Application/Home/View/default/Home/landingPage.html
+++ b/Application/Home/View/default/Home/landingPage.html
@@ -810,7 +810,7 @@ var PhoneObj = {
dataType: 'JSON',
data:{
account: account,
- password: regpassword,
+ password: password,
promote_id: promoteId
},
success: function (result) {
diff --git a/Application/Mobile/Controller/CommonController.class.php b/Application/Mobile/Controller/CommonController.class.php
index b67a7c7db..99aba36d5 100644
--- a/Application/Mobile/Controller/CommonController.class.php
+++ b/Application/Mobile/Controller/CommonController.class.php
@@ -105,7 +105,7 @@ class CommonController extends BaseController {
$gameId = $params['game_id'] ?? 0;
#验证短信验证码
- $this->smsVerify($params['account'], $params['code']);
+ $this->smsVerify($params['account'], $params['verify_code']);
$res = $this->doRegister($params['account'], $params['password'], $params['account'], $promoteId, 4, 2, $gameId);
if(empty($res)){
@@ -125,7 +125,7 @@ class CommonController extends BaseController {
if (empty($params)) {
$this->respondError('基础信息不能为空');
}
- $this->smsVerify($params['account'], $params['code']);
+ $this->smsVerify($params['account'], $params['verify_code']);
//更新密码
$userApi = new MemberApi();
$userInfo = M("user", "tab_")->where("account = '".$params['account']."'")->find();
From a1862fd240c1deea9a56e1df615c02a40ef13997 Mon Sep 17 00:00:00 2001
From: ELF <360197197@qq.com>
Date: Wed, 25 Dec 2019 19:33:08 +0800
Subject: [PATCH 07/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Home/Controller/HomeController.class.php | 3 ++
.../Home/View/default/Home/landingPage.html | 39 ++++++++-----------
2 files changed, 19 insertions(+), 23 deletions(-)
diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php
index 04f863e2c..adc53ef6a 100644
--- a/Application/Home/Controller/HomeController.class.php
+++ b/Application/Home/Controller/HomeController.class.php
@@ -237,6 +237,9 @@ class HomeController extends Controller
$downloadUrl = $applyService->getDownloadUrl($apply);
}
+ $serviceQQ = M("config", "sys_")->field('value')->where("name='APP_QQ'")->find()['value'];
+ $this->assign("serviceQQ", $serviceQQ);
+
$this->assign('isNewIos', $isNewIos);
$this->assign('downloadUrl', $downloadUrl);
$this->assign('isIOS13', $isIOS13);
diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html
index c5126a27a..cade98419 100644
--- a/Application/Home/View/default/Home/landingPage.html
+++ b/Application/Home/View/default/Home/landingPage.html
@@ -721,12 +721,10 @@ var PhoneObj = {
game_id:gameId,
},
success: function (result) {
- console.log(result)
- if (result.return_code == 'fail') {
- alert(result.return_msg);
+ if (result.code == '0000') {
+ $('.mounting').show();
} else {
- $("#alert_box").show();
- setTimeout(hideAndLogin,2500)
+ alert(result.msg)
}
}
})
@@ -769,11 +767,11 @@ var PhoneObj = {
async: false,
cache: false,
success: function (result) {
- if (result.code != 0) {
- alert(result.msg);
+ if (result.code == '0000') {
+ $('.mounting').show();
GetVerityCode();
} else {
-
+ alert(result.msg);
}
}
});
@@ -814,15 +812,11 @@ var PhoneObj = {
promote_id: promoteId
},
success: function (result) {
- if (result.return_code == 'fail') {
- alert(result.return_msg);
- } else {
- //成功
- $("#alert_box").show();
- setTimeout(hideAndLogin,2500)
- // alert("注册并登陆成功");
- // window.location.href = "mobile.php?s=/Ssg/index.html"
- }
+ if (result.code == '0000') {
+ $('.mounting').show();
+ } else {
+ alert(result.msg)
+ }
}
})
@@ -853,13 +847,12 @@ var PhoneObj = {
verify_code: verifyCode
},
success: function (result) {
- console.log(result)
- if (result.return_code == 'fail') {
- alert(result.return_msg);
+ if (result.code == '0000') {
+ alert('修改成功,请用新密码登录!')
+ $(".login").show();
+ $(".forgetPass").hide();
} else {
- $("#alert_content").html("密码修改成功,系统将在三秒后自动登录");
- $("#alert_box").show();
- setTimeout(hideAndLogin,2500)
+ alert(result.msg)
}
}
})
From eddc5eb7a62a3789d8b902fd09d2a9a0ce974e5f Mon Sep 17 00:00:00 2001
From: ELF <360197197@qq.com>
Date: Wed, 25 Dec 2019 19:35:28 +0800
Subject: [PATCH 08/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Home/View/default/Home/landingPage.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html
index cade98419..34ac00d4e 100644
--- a/Application/Home/View/default/Home/landingPage.html
+++ b/Application/Home/View/default/Home/landingPage.html
@@ -756,7 +756,7 @@ var PhoneObj = {
url: 'mobile.php?s=/Common/login.html',
data: {
'account': account,
- 'password': window.btoa(password),
+ 'password': password,
'verify_code': verifyCode,
'promote_id': promoteId,
},
From cd6f6e5610ffbcb4eb6eab4d77246cbb68f92c5d Mon Sep 17 00:00:00 2001
From: ELF <360197197@qq.com>
Date: Wed, 25 Dec 2019 19:38:24 +0800
Subject: [PATCH 09/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Home/View/default/Home/landingPage.html | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html
index 34ac00d4e..b83fc5959 100644
--- a/Application/Home/View/default/Home/landingPage.html
+++ b/Application/Home/View/default/Home/landingPage.html
@@ -722,6 +722,7 @@ var PhoneObj = {
},
success: function (result) {
if (result.code == '0000') {
+ $(".phone").hide();
$('.mounting').show();
} else {
alert(result.msg)
@@ -768,11 +769,12 @@ var PhoneObj = {
cache: false,
success: function (result) {
if (result.code == '0000') {
+ $('.login').hide();
$('.mounting').show();
- GetVerityCode();
} else {
alert(result.msg);
}
+ GetVerityCode();
}
});
})
@@ -813,6 +815,7 @@ var PhoneObj = {
},
success: function (result) {
if (result.code == '0000') {
+ $(".common").hide();
$('.mounting').show();
} else {
alert(result.msg)
From 727795050c30d6f7ed6a7d0bfec21fc9aa0cd9b8 Mon Sep 17 00:00:00 2001
From: ELF <360197197@qq.com>
Date: Wed, 25 Dec 2019 19:46:28 +0800
Subject: [PATCH 10/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Home/View/default/Home/landingPage.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html
index b83fc5959..b848c0b1e 100644
--- a/Application/Home/View/default/Home/landingPage.html
+++ b/Application/Home/View/default/Home/landingPage.html
@@ -716,7 +716,7 @@ var PhoneObj = {
data:{
account: phone,
password: password,
- code: verifyCode,
+ verify_code: verifyCode,
promote_id: promoteId,
game_id:gameId,
},
From aa0ec5758adf42976f69002d8cf02b12887ae155 Mon Sep 17 00:00:00 2001
From: ELF <360197197@qq.com>
Date: Wed, 25 Dec 2019 19:53:50 +0800
Subject: [PATCH 11/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Home/View/default/Home/landingPage.html | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html
index b848c0b1e..5b863dbf6 100644
--- a/Application/Home/View/default/Home/landingPage.html
+++ b/Application/Home/View/default/Home/landingPage.html
@@ -33,6 +33,7 @@
+
@@ -526,7 +527,7 @@