Commit f2480631 by HTML5-侯张振

修改历史重复记录

parent f28ca805
...@@ -151,10 +151,12 @@ class Myself extends CI_Controller{ ...@@ -151,10 +151,12 @@ class Myself extends CI_Controller{
'user_mobile'=>$post['mobile'], 'user_mobile'=>$post['mobile'],
'user_type' => 6 'user_type' => 6
); );
$get_user = $this->user->get_use_mobile($use); $get_user = $this->user->get_use_mobile($use);
$where=array('id'=>$this->user_id); $where=array('id'=>$this->user_id);
if($get_user){ if($get_user&&$get_user['check_status']!=4){
$result=array('errcode'=>42123,'errmsg'=>'输入手机号码已存在'); $result=array('errcode'=>42123,'errmsg'=>'输入手机号码已存在');
echo json_encode($result); echo json_encode($result);
return ; return ;
...@@ -162,7 +164,6 @@ class Myself extends CI_Controller{ ...@@ -162,7 +164,6 @@ class Myself extends CI_Controller{
$check=$this->user->update($where,$cur_info); $check=$this->user->update($where,$cur_info);
if($check){ if($check){
$this->session->sess_destroy(); $this->session->sess_destroy();
//get 获取请求登录页 //get 获取请求登录页
......
...@@ -127,15 +127,15 @@ class Customer_building_log_model extends MY_Model{ ...@@ -127,15 +127,15 @@ class Customer_building_log_model extends MY_Model{
if($query->num_rows() > 0) if($query->num_rows() > 0)
{ {
$qery = $query->result_array(); $qery = $query->result_array();
// $rAr=array(); $rAr=array();
// for($i=0;$i<count($qery);$i++) for($i=0;$i<count($qery);$i++)
// { {
// if(!isset($rAr[$qery[$i]['recommend_status']])) if(!isset($rAr[$qery[$i]['recommend_status']]))
// { {
// $rAr[$qery[$i]['recommend_status']]=$qery[$i]; $rAr[$qery[$i]['recommend_status']]=$qery[$i];
// } }
// } }
// $qery=array_values($rAr); $qery=array_values($rAr);
return $qery; return $qery;
//$query->result_array(); //$query->result_array();
......
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