wugg 8 months ago
parent
commit
6c58f1e143
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/bug/model/WorkSubscr.php

+ 2 - 2
app/bug/model/WorkSubscr.php

@@ -55,8 +55,8 @@ use think\Exception;use think\model\concern\SoftDelete;class WorkSubscr extends
         	$tempRemove=[];
         if(!empty($list)){
         	foreach ($list as $item){
-        	    if($item['type']==2) $tempAdd[]=$item['action_id'];
-        	    if($item['type']==1)$tempRemove[]=$item['action_id'];
+        	    if($item['type']==1) $tempAdd[]=$item['action_id'];
+        	    if($item['type']==2)$tempRemove[]=$item['action_id'];
         	}
         }
         return array_diff(array_merge($result,$tempAdd),$tempRemove);