Commit fb539b8b authored by zfc's avatar zfc

保护期暂时取消

parent 86fffc64
...@@ -134,7 +134,9 @@ class Client extends Basic ...@@ -134,7 +134,9 @@ class Client extends Basic
if(!empty($params['search'])){ if(!empty($params['search'])){
//搜索客户--可以搜索自己的客户and 不在保护期的客户 //搜索客户--可以搜索自己的客户and 不在保护期的客户
$where = " (agent_id in(0,{$params['agent_id']}) or agent_id is null or TIMESTAMPDIFF(MINUTE,create_time,'{$time}') > 2880 ) // $where = " (agent_id in(0,{$params['agent_id']}) or agent_id is null or TIMESTAMPDIFF(MINUTE,create_time,'{$time}') > 2880 )
// and ( user_nick like '%{$params['search']}%' or user_phone like '%{$params['search']}%' ) ";
$where = " (agent_id in(0,{$params['agent_id']}) or agent_id is null or TIMESTAMPDIFF(MINUTE,create_time,'{$time}') > 0 )
and ( user_nick like '%{$params['search']}%' or user_phone like '%{$params['search']}%' ) "; and ( user_nick like '%{$params['search']}%' or user_phone like '%{$params['search']}%' ) ";
$data['search'] = $params['search']; $data['search'] = $params['search'];
} }
...@@ -176,7 +178,8 @@ class Client extends Basic ...@@ -176,7 +178,8 @@ class Client extends Basic
'a.sub_shopname', 'a.sub_shopname',
"TIMESTAMPDIFF(MINUTE,f.create_time,'{$time}')as time_minute_diff" "TIMESTAMPDIFF(MINUTE,f.create_time,'{$time}')as time_minute_diff"
]; ];
$where="(u.agent_id in(0,{$params['agent_id']}) or f.user_id is null or TIMESTAMPDIFF(MINUTE,u.create_time,'{$time}') > 2880 ) "; //$where="(u.agent_id in(0,{$params['agent_id']}) or f.user_id is null or TIMESTAMPDIFF(MINUTE,u.create_time,'{$time}') > 2880 ) ";
$where="(u.agent_id in(0,{$params['agent_id']}) or f.user_id is null or TIMESTAMPDIFF(MINUTE,u.create_time,'{$time}') > 0 ) ";
if(!empty($search)){ if(!empty($search)){
$where.=" and f.content like '%$search%' "; $where.=" and f.content like '%$search%' ";
$data['search']=$search; $data['search']=$search;
......
...@@ -156,7 +156,7 @@ class Auth extends Basic ...@@ -156,7 +156,7 @@ class Auth extends Basic
if ($table->editData($data,$id)) { if ($table->editData($data,$id)) {
return $this->response(200, '成功'); return $this->response(200, '成功');
} else { } else {
return $this->response(101, '失败'); return $this->response(101, '未改动或者角色名重复!');
} }
...@@ -300,7 +300,7 @@ class Auth extends Basic ...@@ -300,7 +300,7 @@ class Auth extends Basic
if($table->saveStatus('status',$data['status'],$ids)){ if($table->saveStatus('status',$data['status'],$ids)){
return $this->response(200,'成功',$data); return $this->response(200,'成功',$data);
}else{ }else{
return $this->response(100,'未改动或者角色名重复!',$data); return $this->response(100,'失败',$data);
} }
} }
//权限表界面 //权限表界面
......
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