|
@@ -171,7 +171,7 @@ class WorkRole extends Base{
|
|
|
|
|
|
public function WorkRoleInfo(){
|
|
|
$id=$this->request->post("id/d");
|
|
|
- $info = WorkUser::where(['id'=>$id])->findOrEmpty();
|
|
|
+ $info = WorkUser::with(['account',"workRole"])->where(['id'=>$id])->findOrEmpty();
|
|
|
if($info->isEmpty())return error('账户角色信息不存在');
|
|
|
$info->statusCn= WorkUser::$statusCn[$info->status];
|
|
|
return success("获取成功",$info);
|