From a55efe582bb30c57e6da0d228b928bc8ae84d271 Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Thu, 12 Dec 2019 17:18:49 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0-?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=BB=84-=E7=8E=A9=E5=AE=B6=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=95=8F=E6=84=9F=E4=BF=A1=E6=81=AF=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/MemberController.class.php | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/MemberController.class.php b/Application/Admin/Controller/MemberController.class.php index c57b0849f..6a265b894 100644 --- a/Application/Admin/Controller/MemberController.class.php +++ b/Application/Admin/Controller/MemberController.class.php @@ -494,9 +494,9 @@ class MemberController extends ThinkController $this->error('请填写正确的名字'); } - if (!empty($data['idcard']) && !preg_match('/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/', $data['idcard'])) { + /* if (!empty($data['idcard']) && !preg_match('/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/', $data['idcard'])) { $this->error('请输入正确的身份证号码'); - } + }*/ $res = $member->updateInfo($data); if ($res !== false) { @@ -712,6 +712,30 @@ class MemberController extends ThinkController } } + public function changepidcard() + { + if (preg_match('/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/', $_POST['idcard'])) { + //重复判断 + $where['idcard'] = $_POST['idcard']; + /*$user = M('User', 'tab_')->where($where)->field('id,account')->find(); + if ($user) { + $this->ajaxReturn(array("status" => 0, "msg" => "该身份证号码已被" . $user['account'] . "(" . $user['id'] . ")绑定")); + }*/ + + $map['id'] = $_POST['id']; + $pro = M("User", "tab_") + ->where($map) + ->setField('idcard', $_POST['idcard']); + if ($pro !== false) { + $this->ajaxReturn(array("status" => 1, "msg" => "身份证号码修改成功")); + } else { + $this->ajaxReturn(array("status" => 0, "msg" => "身份证号码修改失败")); + } + } else { + $this->ajaxReturn(array("status" => 0, "msg" => "请输入正确的身份证号码")); + } + } + public function denglu($p = 1) { $map['user_id'] = $_REQUEST['id']; From ed584bfb2f76b8efa9dadea5dd4e71d8c9287faa Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Thu, 12 Dec 2019 17:19:29 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0-?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=BB=84-=E7=8E=A9=E5=AE=B6=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=95=8F=E6=84=9F=E4=BF=A1=E6=81=AF=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/Member/edit.html | 475 +++++++++++++----------- 1 file changed, 253 insertions(+), 222 deletions(-) diff --git a/Application/Admin/View/Member/edit.html b/Application/Admin/View/Member/edit.html index aa7d84059..d919416fe 100644 --- a/Application/Admin/View/Member/edit.html +++ b/Application/Admin/View/Member/edit.html @@ -1,56 +1,56 @@ - +
-
+
-
- - -
- - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
玩家账号 - - 玩家登录账号,一经注册,全平台通用 -
登录密码 - - 不可查看,只能更改密码 -
用户昵称 - - — — - - - - 初次登录,默认玩家为账号,用户可自行设置昵称 -
账号状态 + + + +
+ + + + + + + + + + + + + + + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + 需玩家认证真实姓名和身份证号码 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - -
玩家账号 + + 玩家登录账号,一经注册,全平台通用 +
登录密码 + + 不可查看,只能更改密码 +
用户昵称 + + — — + + + + 初次登录,默认玩家为账号,用户可自行设置昵称 +
账号状态 - 可设置玩家账号的登录状态,锁定即无法登录本平台 -
用户头像 + 可设置玩家账号的登录状态,锁定即无法登录本平台 +
用户头像 点击查看原图 - 初次登录默认头像,用户可以自行修改 -
VIP等级 + 初次登录默认头像,用户可以自行修改 +
VIP等级 VIP {:get_vip_level($recharge_total)} - -
实名认证 + +
实名认证 未认证 @@ -96,158 +96,153 @@ 意外数据 - - 需玩家认证真实姓名和身份证号码 -
真实姓名 - - - - - -
身份证号 - - - - - -
QQ号 - - - - - -
手机号码 - - 点击修改 - 玩家绑定的手机号,可通过点击修改,更换玩家的绑定手机(慎重使用) -
注册时间 - -
注册ip - -
真实姓名 + + + + + +
身份证号 + + 点击修改 +
QQ号 + + + + + +
手机号码 + + 点击修改 + 玩家绑定的手机号,可通过点击修改,更换玩家的绑定手机(慎重使用) +
注册时间 + +
注册ip + + +
最后登录时间 + +
最后登录IP + +
平台币余额 + + 显示该用户平台币的账户余额 +
绑定平台币余额 + 点击查看 + 显示该用户各个游戏的绑定平台币余额(点击弹出显示,可以手动修改) +
游戏付费记录 + 点击查看 + 此处显示该玩家游戏内的充值记录;不包含玩家账户充值平台币的记录 +
最后登录时间 - -
最后登录IP - -
平台币余额 - - 显示该用户平台币的账户余额 -
绑定平台币余额 - 点击查看 - 显示该用户各个游戏的绑定平台币余额(点击弹出显示,可以手动修改) -
游戏付费记录 - 点击查看 - 此处显示该玩家游戏内的充值记录;不包含玩家账户充值平台币的记录 -
金币余额 +
金币余额 - 显示该用户的金币余额 -
金币提现记录 - 点击查看 - 此处显示该玩家的金币提现记录 -
角色信息 - 点击查看 - 点击查看该用户游戏角色信息 -
游戏登录记录 - 点击查看 - 点击查看该用户游戏登录记录 -
-
- - - - - 返回 - -
-
-
+ 显示该用户的金币余额 +
金币提现记录 + 点击查看 + 此处显示该玩家的金币提现记录 +
角色信息 + 点击查看 + 点击查看该用户游戏角色信息 +
游戏登录记录 + 点击查看 + 点击查看该用户游戏登录记录 +
+
+ + + + + 返回 + +
+
+
+
+
+
+
+ +
+ +
-
+ 已添加添加至常用设置
- - -
@@ -289,7 +284,7 @@ var href = $(this).attr('href'); layer.open({ type: 2, title: "绑定平台币余额", shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: [href , 'no'] + content: [href , 'no'] }); return false; }); @@ -300,7 +295,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: [url + 'admin.php?s=/Member/chax/id/' + id + '' , 'no'] + content: [url + 'admin.php?s=/Member/chax/id/' + id + '' , 'no'] }); }); @@ -311,24 +306,24 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: [url + 'admin.php?s=/Member/role_list/user_id/' + id + '' , 'no'] + content: [url + 'admin.php?s=/Member/role_list/user_id/' + id + '' , 'no'] }); }); - - $('#tixian').click(function() { - layer.open({ + + $('#tixian').click(function() { + layer.open({ type: 2, title: "【金币提现记录】列表", shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: [url + 'admin.php?s=/Member/gold_coin/user_id/' + id + '/account/'+$.trim($('input[name="account"]').val()), 'no'] + content: [url + 'admin.php?s=/Member/gold_coin/user_id/' + id + '/account/'+$.trim($('input[name="account"]').val()), 'no'] }); - }); - + }); + $('#lookheadpic').click(function() { - var url = $(this).attr('src'); - layer.open({ + var url = $(this).attr('src'); + layer.open({ type: 1, title: "", shadeClose: true, @@ -345,7 +340,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: [url + 'admin.php?s=/Member/denglu/id/' + id + '', 'no'] + content: [url + 'admin.php?s=/Member/denglu/id/' + id + '', 'no'] }); }); $("#bind_balance").click(function () { @@ -356,9 +351,45 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: [url + 'admin.php?s=/Member/bind_balance/id/' + id + '', 'no'] + content: [url + 'admin.php?s=/Member/bind_balance/id/' + id + '', 'no'] + }); + }); + + $("#idcard").click(function () { + layer.prompt({ + formType: 3, + title: "请输入身份证号码", + value: '' + }, function (idcard) { + var jsid = $('#selfid').val(); + var regIdNo = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/; + if(!regIdNo.test(idcard)){ + layer.msg("身份证号填写有误"); + return false; + } + $.ajax({ + url: '{:U("changepidcard")}', + type: 'post', + dataType: 'json', + data: {idcard:idcard,id:jsid}, + success: function (data) { + if (data.status > 0) { + layer.msg(data.msg) + setTimeout(function(){ + self.location.reload(true); + },1500); + + } else { + layer.msg(data.msg) + } + }, + error: function () { + alert("服务器故障!"); + } + }); }); }); + $("#phone").click(function () { layer.prompt({ formType: 3, @@ -380,10 +411,10 @@ success: function (data) { if (data.status > 0) { layer.msg(data.msg) - setTimeout(function(){ + setTimeout(function(){ self.location.reload(true); },1500); - + } else { layer.msg(data.msg) } From 381fa8d6338c40c6ee7ed97c00cf5af5e9632884 Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Thu, 12 Dec 2019 17:20:36 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0-?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=BB=84-=E7=8E=A9=E5=AE=B6=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=95=8F=E6=84=9F=E4=BF=A1=E6=81=AF=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/Member/user_info.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/View/Member/user_info.html b/Application/Admin/View/Member/user_info.html index 62cb6dc49..a9acb9286 100644 --- a/Application/Admin/View/Member/user_info.html +++ b/Application/Admin/View/Member/user_info.html @@ -284,7 +284,7 @@ - {$data.device_number} + {$data.device_number|encryptStr} 已{:get_info_status($data['lock_status'],4)} From d265c9b03ffc7e99470af2e254a9ccb3af99f638 Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Thu, 12 Dec 2019 17:21:46 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0-?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=BB=84-=E7=8E=A9=E5=AE=B6=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=95=8F=E6=84=9F=E4=BF=A1=E6=81=AF=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/function.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Application/Admin/Common/function.php b/Application/Admin/Common/function.php index 0b8423ef2..bcb506d46 100644 --- a/Application/Admin/Common/function.php +++ b/Application/Admin/Common/function.php @@ -584,4 +584,16 @@ function getAllGame() { $list = M("game", 'tab_')->field('relation_game_name as game_name')->group('relation_game_name')->select(); return $list; +} + +/** + * 中间加密 替换字符串的子串 + */ +function encryptStr($str) { + $length = strlen($str); + $stars_str = ""; + for ($x=0; $x<=$length-6; $x++) { + $stars_str = $stars_str."*"; + } + return substr_replace($str, $stars_str, 3, $length-6); } \ No newline at end of file