|
...
|
...
|
@@ -29,15 +29,15 @@ class UserLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function user_info()
|
|
|
|
{
|
|
|
|
// $info = Common::get_user_cache($this->model, $this->param['id'], 'A');
|
|
|
|
// if (empty($info)) {
|
|
|
|
$info = Common::get_user_cache($this->model, $this->param['id'], 'A');
|
|
|
|
if (empty($info)) {
|
|
|
|
$info = $this->model->read($this->param, ['id', 'project_id', 'name', 'status', 'role_id' ,'mobile', 'operator_id']);
|
|
|
|
if ($info === false) {
|
|
|
|
$this->fail('当前数据不存在');
|
|
|
|
}
|
|
|
|
$info['project_name'] = (new Project())->read(['id' => $info['project_id']], ['title'])['title'];
|
|
|
|
Common::set_user_cache($info, $this->model, $this->param['id'], 'A');
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|