wugg 8 tháng trước cách đây
mục cha
commit
33caf622a4
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      app/bug/listener/RoleEvent.php

+ 4 - 4
app/bug/listener/RoleEvent.php

@@ -71,7 +71,7 @@ class RoleEvent
 
     private function roleOn($event){
          $action = (new WorkAction)->GetBelongActionByIdArrs($event->action);
-        $info=$this->model->with(["RoleInfo","RoleProcess"])->where('id',$event->belong_role_id)->findOrEmpty();
+        $info=$this->model->with(["RoleInfo","ProcessInfo"])->where('id',$event->belong_role_id)->findOrEmpty();
         $info->role_name = $event->role_name;
         $info->role_level = $event->level;
         $info->level = $event->level;
@@ -93,8 +93,8 @@ class RoleEvent
                         'private_data' => $action['private']??[],
                     ]);
 
-        	if(is_null($info->RoleProcess)){
-        		$info->RoleProcess()->save( [
+        	if(is_null($info->ProcessInfo)){
+        		$info->ProcessInfo()->save( [
 	                        'action_data' =>  $action['process']??[],
 	                        'role_id' => $info->id,
 	                        "createrid"=>$info->apply_id,
@@ -102,7 +102,7 @@ class RoleEvent
 	                        "updaterid"=>$info->apply_id,
 	                        "updater"=>$info->apply_name,
 	                    ]);
-	        }else$info->RoleProcess->save( [
+	        }else$info->ProcessInfo->save( [
                         'action_data' =>$action['process'],
                     ]);
         	if($event->belong_role_id==0){