From e59a2f735096eb9e26a579b01b510e84aee7af06 Mon Sep 17 00:00:00 2001 From: "elf@home" <360197197@qq.com> Date: Wed, 1 Jan 2020 16:18:09 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=8E=A9=E5=AE=B6?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E5=8F=AA=E5=AF=B9=E5=90=8C=E4=B8=80=E6=8E=A8?= =?UTF-8?q?=E5=B9=BF=E5=91=98=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Service/PromoteService.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Base/Service/PromoteService.class.php b/Application/Base/Service/PromoteService.class.php index d1ba9e5d1..205abadbb 100644 --- a/Application/Base/Service/PromoteService.class.php +++ b/Application/Base/Service/PromoteService.class.php @@ -123,7 +123,7 @@ class PromoteService { ]; } - $shiftTask = M('shift_task', 'sys_')->field(['id'])->where(['type' => $type, 'status' => 0, 'from_promote_id'])->find(); + $shiftTask = M('shift_task', 'sys_')->field(['id'])->where(['type' => $type, 'status' => 0, 'from_promote_id' => $fromPromoteId])->find(); if ($shiftTask) { return [ 'status' => false, From 0bc50cbf70449edfd31b6a7c273f23b125489137 Mon Sep 17 00:00:00 2001 From: "elf@home" <360197197@qq.com> Date: Wed, 1 Jan 2020 21:22:49 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/MendController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/MendController.class.php b/Application/Admin/Controller/MendController.class.php index 0397a1dd4..a24aa2418 100644 --- a/Application/Admin/Controller/MendController.class.php +++ b/Application/Admin/Controller/MendController.class.php @@ -123,9 +123,9 @@ class MendController extends ThinkController { if(self::checkSettlement(strtotime($_POST['order_time']),$_POST['promote_id'])){ $this->error('在订单日期内含有已经结算的订单,无法补链'); } - if(self::checkPromote(strtotime($_POST['order_time']),$_POST['account'])){ + /* if(self::checkPromote(strtotime($_POST['order_time']),$_POST['account'])){ $this->error('在订单日期内含有多个推广员,无法补链'); - } + } */ $create = $_REQUEST; $create['order_time'] = date($create['order_time']); From 0a0cedafd5de82a55a39d8eba044ad5740820d29 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Thu, 2 Jan 2020 11:37:53 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=90=84=E4=B8=AA=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=8F=90=E7=A4=BA=E5=AE=89=E5=85=A8=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8Csessionon=5Fid=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/PublicController.class.php | 4 ++-- Application/Admin/Model/PromoteModel.class.php | 3 ++- Application/Admin/Model/UserModel.class.php | 1 + Application/Commerce/Controller/IndexController.class.php | 5 +++-- Application/Commerce/View/Index/login.html | 6 ------ Application/Home/Controller/IndexController.class.php | 4 ++-- Application/Home/View/default/Index/index.html | 6 ------ 7 files changed, 10 insertions(+), 19 deletions(-) diff --git a/Application/Admin/Controller/PublicController.class.php b/Application/Admin/Controller/PublicController.class.php index e4f5cf2d9..8f33357a2 100644 --- a/Application/Admin/Controller/PublicController.class.php +++ b/Application/Admin/Controller/PublicController.class.php @@ -41,10 +41,10 @@ class PublicController extends \Think\Controller } else { //登录失败 switch ($uid) { case -1: - $error = '用户不存在或被禁用!'; + $error = '账户或密码错误!'; break; //系统级别禁用 case -2: - $error = '密码错误!'; + $error = '账户或密码错误!'; break; default: $error = '未知错误!'; diff --git a/Application/Admin/Model/PromoteModel.class.php b/Application/Admin/Model/PromoteModel.class.php index b466da9a2..667295c06 100644 --- a/Application/Admin/Model/PromoteModel.class.php +++ b/Application/Admin/Model/PromoteModel.class.php @@ -159,7 +159,7 @@ class PromoteModel extends Model{ ); session('promote_auth', $auth); session('promote_auth_sign', data_auth_sign($auth)); - + session_regenerate_id(); } /** @@ -170,6 +170,7 @@ class PromoteModel extends Model{ session('promote_auth', null); session('promote_auth_sign', null); session('game_divide_second_pwd', null); + session_regenerate_id(); } /** diff --git a/Application/Admin/Model/UserModel.class.php b/Application/Admin/Model/UserModel.class.php index a791c59b3..810e32c31 100644 --- a/Application/Admin/Model/UserModel.class.php +++ b/Application/Admin/Model/UserModel.class.php @@ -816,6 +816,7 @@ class UserModel extends Model{ ); session($session_name, $auth); session($session_name.'_sign', data_auth_sign($auth)); + session_regenerate_id(); } /** *更新玩家信息 diff --git a/Application/Commerce/Controller/IndexController.class.php b/Application/Commerce/Controller/IndexController.class.php index a1e08c252..39ba497da 100644 --- a/Application/Commerce/Controller/IndexController.class.php +++ b/Application/Commerce/Controller/IndexController.class.php @@ -27,14 +27,14 @@ class IndexController extends \Think\Controller{ $map['account']=I('post.account'); $find=M('BusinessAffairs','tab_')->field('id,password')->where($map)->find(); if(null==$find){ - $this->ajaxReturn(array('status'=>-1,'msg'=>'账号不存在或被禁用!')); + $this->ajaxReturn(array('status'=>-1,'msg'=>'账号或密码错误!')); }else{ $User = new UserApi; if($find['password'] ==$this->think_ucenter_md5(I('post.pwd'), UC_AUTH_KEY)){ $this->save_login($find['id'],I('post.account')); $this->ajaxReturn(array('status'=>1,'msg'=>'登录成功')); }else{ - $this->ajaxReturn(array('status'=>-1,'msg'=>'密码错误')); + $this->ajaxReturn(array('status'=>-1,'msg'=>'账号或密码错误!')); } } } @@ -82,6 +82,7 @@ class IndexController extends \Think\Controller{ 'account' => $account, ); session('user_auth_commerce', $auth); + session_regenerate_id(); } /** diff --git a/Application/Commerce/View/Index/login.html b/Application/Commerce/View/Index/login.html index 20cacdf16..702e84185 100644 --- a/Application/Commerce/View/Index/login.html +++ b/Application/Commerce/View/Index/login.html @@ -91,11 +91,6 @@ username:{ required:true, rangelength:[6,15], - remote:{ - url: "{:U('Index/checkAccount')}", //后台处理程序 - type: "post", //数据发送方式 - data: {username:function() {return $("#username").val();}} - } }, password:{ required:true, @@ -109,7 +104,6 @@ username:{ required:"请输入管理员账号", rangelength:"账号必须是6~15位字符串", - remote:"账号不存在或被禁用", }, password:{ required:"请输入密码", diff --git a/Application/Home/Controller/IndexController.class.php b/Application/Home/Controller/IndexController.class.php index f91d6a4e6..95f3a5f8d 100644 --- a/Application/Home/Controller/IndexController.class.php +++ b/Application/Home/Controller/IndexController.class.php @@ -79,10 +79,10 @@ class IndexController extends HomeController $msg = ""; switch ($result) { case -1: - $msg = "账号不存在"; + $msg = "账号或密码错误!"; break; case -2: - $msg = "密码错误"; + $msg = "账号或密码错误!"; break; case -3: $msg = "账号被禁用,请联系管理员"; diff --git a/Application/Home/View/default/Index/index.html b/Application/Home/View/default/Index/index.html index 5d33666b3..578362aeb 100644 --- a/Application/Home/View/default/Index/index.html +++ b/Application/Home/View/default/Index/index.html @@ -165,11 +165,6 @@ required:true, rangelength:[6,100], numOrLetter:true, - remote:{ - url: "{:U('Index/isExistcheckAccount')}", //后台处理程序 - type: "post", //数据发送方式 - data: {account:function() {return $(".account").val();}}, - } }, password:{ required:true, @@ -185,7 +180,6 @@ account:{ required:"请输入登录账号", rangelength:"账号必须是6-15位字符串", - remote:"账号不存在或被锁定", }, password:{ required:"请输入登录密码",