作者 lyh

gx

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