wugg 8 月之前
父节点
当前提交
6c58f1e143
共有 1 个文件被更改,包括 2 次插入2 次删除
  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);