|
@@ -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);
|