wugg 9 ay önce
ebeveyn
işleme
53917494d9
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      app/bug/controller/WorkRole.php

+ 1 - 1
app/bug/controller/WorkRole.php

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