Commit f2480631 by HTML5-侯张振

修改历史重复记录

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