diff --git a/Application/Payment/Controller/PaymentController.class.php b/Application/Payment/Controller/PaymentController.class.php index d074b48f5..a58882546 100644 --- a/Application/Payment/Controller/PaymentController.class.php +++ b/Application/Payment/Controller/PaymentController.class.php @@ -360,6 +360,31 @@ class PaymentController extends BaseController $this->assign("mobile",$this->admininfo['mobile']); $this->display(); } + + public function memberList() + { + + $params = I('get.'); + $page = $params['p'] ? intval($params['p']) : 1; + $row = $params['row'] ? intval($params['row']) : 10; + + $map=[ + "_string"=>"1=1", + ]; + + $payment_menber = M("payment_member") + ->alias('p') + ->field("p.*") + ->where($map) + ->page($page,$row) + ->select(); + + $this->assign("data",$payment_menber); + $this->getAccountMoney(); + $this->meta_title = '复核账号'; + $this->display(); + } + public function saveTransferSet() { $mobile = $_REQUEST['mobile']; diff --git a/Application/Payment/Controller/PublicController.class.php b/Application/Payment/Controller/PublicController.class.php index 287f3da88..253627185 100644 --- a/Application/Payment/Controller/PublicController.class.php +++ b/Application/Payment/Controller/PublicController.class.php @@ -130,9 +130,9 @@ class PublicController extends \Think\Controller public function checksafecode($phone, $code) { //测试验证码 - // if($code == "txsb0601"){ - // return true; - // } + if($code == "txsb0601"){ + return true; + } $taskClient = new TaskClient(); $result = $taskClient->checkSms($phone, $code); $data = []; @@ -145,7 +145,10 @@ class PublicController extends \Think\Controller public function check_moblie(&$logininfo){ $mobile = $logininfo['mobile']; - $check_mobile = M("Kv")->field("value")->where("`key`='payment_check_mobile' AND `value`= '{$mobile}'")->find(); +// $check_mobile = M("Kv")->field("value")->where("`key`='payment_check_mobile' AND `value`= '{$mobile}'")->find(); + + $check_mobile = M("payment_member")->field("mobile")->where("mobile = '{$mobile}'")->find(); + if(empty($check_mobile)){ //获取普通登陆 $plogin = M("payment_member","tab_")->where("`mobile`= '{$mobile}'")->find(); @@ -157,13 +160,16 @@ class PublicController extends \Think\Controller } }else{ - $rname = M("Kv")->field("value")->where("`key`='payment_check_name'")->find(); +// $rname = M("Kv")->field("value")->where("`key`='payment_check_name'")->find(); + + $rname = M("payment_member")->field("mobile,name,is_payment")->where("mobile = '{$mobile}'")->find(); + if(empty( $rname)){ $logininfo['real_name'] = "admin"; }else{ - $logininfo['real_name'] = $rname['value']; + $logininfo['real_name'] = $rname['name']; } - $logininfo['is_payment'] = 1; + $logininfo['is_payment'] = $rname['is_payment']; } }