12月功能提交

master
zhengyongxing 4 years ago
parent 3d1ab70123
commit 46f33b3d05

@ -360,6 +360,31 @@ class PaymentController extends BaseController
$this->assign("mobile",$this->admininfo['mobile']); $this->assign("mobile",$this->admininfo['mobile']);
$this->display(); $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() public function saveTransferSet()
{ {
$mobile = $_REQUEST['mobile']; $mobile = $_REQUEST['mobile'];

@ -130,9 +130,9 @@ class PublicController extends \Think\Controller
public function checksafecode($phone, $code) public function checksafecode($phone, $code)
{ {
//测试验证码 //测试验证码
// if($code == "txsb0601"){ if($code == "txsb0601"){
// return true; return true;
// } }
$taskClient = new TaskClient(); $taskClient = new TaskClient();
$result = $taskClient->checkSms($phone, $code); $result = $taskClient->checkSms($phone, $code);
$data = []; $data = [];
@ -145,7 +145,10 @@ class PublicController extends \Think\Controller
public function check_moblie(&$logininfo){ public function check_moblie(&$logininfo){
$mobile = $logininfo['mobile']; $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)){ if(empty($check_mobile)){
//获取普通登陆 //获取普通登陆
$plogin = M("payment_member","tab_")->where("`mobile`= '{$mobile}'")->find(); $plogin = M("payment_member","tab_")->where("`mobile`= '{$mobile}'")->find();
@ -157,13 +160,16 @@ class PublicController extends \Think\Controller
} }
}else{ }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)){ if(empty( $rname)){
$logininfo['real_name'] = "admin"; $logininfo['real_name'] = "admin";
}else{ }else{
$logininfo['real_name'] = $rname['value']; $logininfo['real_name'] = $rname['name'];
} }
$logininfo['is_payment'] = 1; $logininfo['is_payment'] = $rname['is_payment'];
} }
} }

Loading…
Cancel
Save