wugg 8 tháng trước cách đây
mục cha
commit
6c58f1e143
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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);