foreach ($data1 as $k => $v){ $flag=true; foreach ($data as $dk=>$dv){ if($v[‘fangId‘]==$dv[‘fangId‘]){ $time=$dv[‘dealTime‘]-$v[‘addTime‘]; if($time<=$changetime*24*3600){ $flag=false; } } } if($flag){ $res[]=$v[‘fangId‘]; }}
$data1和data两组数据,做time对比打标记
时间: 2024-11-08 23:58:37