diff --git a/admin/controllers/Login.php b/admin/controllers/Login.php index 65cb98ec..9764ca67 100644 --- a/admin/controllers/Login.php +++ b/admin/controllers/Login.php @@ -18,7 +18,7 @@ class Login extends CI_Controller header('Location:/welcome'); } - $this->load->view('login'); + $this->load->view('login_sms'); } public function post() @@ -39,13 +39,16 @@ class Login extends CI_Controller $cookie = $this->input->cookie(LOGIN_CODE_COOKIE); $code_cookie = $this->encryption->decrypt($cookie); if (!$code_cookie) { - return $this->show_json(0, '验证码已过期'); + return $this->show_json(0, '请输入正确验证码'); } if ($code_cookie != $code) { return $this->show_json(0, '验证码错误'); } $this->load->model('sys/sys_admin_model'); - $admin_user = $this->sys_admin_model->get(array("mobile = '{$mobile}'" => null, 'status' => 1)); + $admin_user = $this->sys_admin_model->get(array("mobile" => $mobile, 'status' => 1)); + if(!$admin_user){ + return $this->show_json(0, '用户不存在'); + } $log = 1; } else { if (!$username) { @@ -116,6 +119,11 @@ class Login extends CI_Controller { if ($this->input->method() == 'post') { $mobile = $this->input->post('mobile', true); + $this->load->model('sys/sys_admin_model'); + $admin_user = $this->sys_admin_model->get(array("mobile" => $mobile, 'status' => 1)); + if(!$admin_user){ + return $this->show_json(SYS_CODE_FAIL, '请输入正确手机号'); + } $code = rand(100000, 999999); $domain = explode('.', $_SERVER['HTTP_HOST']); @@ -123,7 +131,10 @@ class Login extends CI_Controller $domain = implode('.', $domain); $this->input->set_cookie(LOGIN_CODE_COOKIE, $this->encryption->encrypt(json_encode($code)), 60 * 5, $domain); - send_sms($mobile, $code); +// send_sms($mobile, $code); + $content = "【东创宝】您的验证码为:{$code},请勿泄露于他人!"; + b2m_send_sms($mobile,$content); + return $this->show_json(SYS_CODE_SUCCESS, '验证码已发送'); } } diff --git a/admin/controllers/app/licheb/Main.php b/admin/controllers/app/licheb/Main.php index deaf3883..b07cd94e 100644 --- a/admin/controllers/app/licheb/Main.php +++ b/admin/controllers/app/licheb/Main.php @@ -84,7 +84,7 @@ class Main extends HD_Controller ); $value = $this->mdPolyvSession->count(); $list[] = array( - 'title' => '保利威直播-场次报表', + 'title' => '直播-场次报表', 'value' => $value, 'btns' => array( array('name' => '查看详情', 'url' => '/live/polyv'), diff --git a/admin/controllers/receiver/orderv2/Orders.php b/admin/controllers/receiver/orderv2/Orders.php index 76294ce4..4150a861 100644 --- a/admin/controllers/receiver/orderv2/Orders.php +++ b/admin/controllers/receiver/orderv2/Orders.php @@ -785,10 +785,10 @@ class Orders extends HD_Controller $last_p_row && $this->app_liche_orders_model->update(['status'=>1],['id'=>$last_p_row['id']]);//完成未支付尾款 $this->orders_status_entity->set_status($row['id'],0,2); } - if(!$this->order_contracts_model->count(['o_id'=>$row['id']])){ //生成合同 - $url = http_host_com('api').'/pdfapi/add_pdf?oid='.$row['id']; - $pdf_res = file_get_contents($url); - } +// if(!$this->order_contracts_model->count(['o_id'=>$row['id']])){ //生成合同 +// $url = http_host_com('api').'/pdfapi/add_pdf?oid='.$row['id']; +// $pdf_res = file_get_contents($url); +// } if($row['order_time'] == '0000-00-00 00:00:00'){ //更新下定时间 $this->receiver_orders_v2_model->update(['order_time' => date('Y-m-d H:i:s',strtotime($pay_time))], ['id' => $row['id']]); } diff --git a/admin/views/index.php b/admin/views/index.php index b1bbb9e4..a047e62f 100755 --- a/admin/views/index.php +++ b/admin/views/index.php @@ -1,7 +1,7 @@
-
+