|
|
@ -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'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|