Commit 7f0f5e4c authored by liuqiao's avatar liuqiao

二维码登录

parent bbad47d2
......@@ -70,7 +70,7 @@ class zsb_api_model extends MY_Model{
$token = $this->getToken();
$aHeader = array('token:'.$token);
$response = $this->httpRequest($url,$aHeader,$param);
$response = json_decode($response,true);
$response = json_decode($response,true);
return $response;
}
......
......@@ -426,7 +426,7 @@ $config['block_expert']["wfen"] = 0; //
$config['block_expert']["freeze_num"] = 10; //可以被冻结的次数
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter','quit','findpw','findpw_code','confirm_validcode'),
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter','quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -424,7 +424,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -425,7 +425,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -428,7 +428,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -428,7 +428,7 @@ $config['block_expert']["freeze_num"] = 10; //
$config['no_login_check'] = array(
'lottery' =>array('index', 'pool', 'ajaxMine', 'ajaxRun', 'ajaxBook'),
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -428,7 +428,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -430,7 +430,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -425,7 +425,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -428,7 +428,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -425,7 +425,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -427,7 +427,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -425,7 +425,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -427,7 +427,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -426,7 +426,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -425,7 +425,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -425,7 +425,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -425,7 +425,7 @@ $config['block_expert']["freeze_num"] = 10; //
//The action which do not need to check login, can set in this array.
$config['no_login_check'] = array(
'login' =>array('index','cp_enter','ag_enter_set','ag_enter','cp_enter_set','cp_enter',
'quit','findpw','findpw_code','confirm_validcode'),
'quit','findpw','findpw_code','confirm_validcode','qrCode','qrCodeLogin'),
'valid' =>array('index'),
'desktop' =>array('index'),
'payment' =>array('notify', 'agreement'),
......
......@@ -462,7 +462,10 @@ class Login extends MY_Controller {
public function qrCode()
{
$this->load->model('zsb_api_model');// 租售宝API调用类
$data = $this->zsb_api_model->getRequrstData('login_qr_code');
$params = array(
'city' => GB_CITY
);
$data = $this->zsb_api_model->getRequrstData('login_qr_code',$params);
echo json_encode($data);exit();
}
......@@ -475,6 +478,7 @@ class Login extends MY_Controller {
$uuid = $this->input->post('uuid');
$params = array(
'key' => $uuid,
'city' => GB_CITY,
);
$this->load->model('zsb_api_model');// 租售宝API调用类
// 通过key获取缓存用户数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment