作者 lyh

gx

@@ -29,16 +29,15 @@ class UserLogic extends BaseLogic @@ -29,16 +29,15 @@ class UserLogic extends BaseLogic
29 */ 29 */
30 public function user_info() 30 public function user_info()
31 { 31 {
32 - Common::del_user_cache($this->model, [$this->param['id']], 'A');  
33 - $info = Common::get_user_cache($this->model, $this->param['id'], 'A');  
34 - if (empty($info)) { 32 +// $info = Common::get_user_cache($this->model, $this->param['id'], 'A');
  33 +// if (empty($info)) {
35 $info = $this->model->read($this->param, ['id', 'project_id', 'name', 'status', 'role_id' ,'mobile', 'operator_id']); 34 $info = $this->model->read($this->param, ['id', 'project_id', 'name', 'status', 'role_id' ,'mobile', 'operator_id']);
36 if ($info === false) { 35 if ($info === false) {
37 $this->fail('当前数据不存在'); 36 $this->fail('当前数据不存在');
38 } 37 }
39 $info['project_name'] = (new Project())->read(['id' => $info['project_id']], ['title'])['title']; 38 $info['project_name'] = (new Project())->read(['id' => $info['project_id']], ['title'])['title'];
40 Common::set_user_cache($info, $this->model, $this->param['id'], 'A'); 39 Common::set_user_cache($info, $this->model, $this->param['id'], 'A');
41 - } 40 +// }
42 return $this->success($info); 41 return $this->success($info);
43 } 42 }
44 43