作者 刘锟

合并分支 'akun' 到 'master'

update



查看合并请求 !3359
... ... @@ -150,12 +150,18 @@ class GeoQuestionLogic extends BaseLogic
if(!empty($data)){
$temp = [];
foreach ($data as $item){
$temp[$item['question']][] = $item['platform'];
if(empty($temp[$item['question']])){
$temp[$item['question']][] = $item['platform'];
}else{
if(!in_array($item['platform'],$temp[$item['question']])){
$temp[$item['question']][] = $item['platform'];
}
}
}
if(!empty($temp)){
foreach ($temp as $kt=>$vt){
$list[] = ['question'=>$kt,'platform'=>array_unique($vt)];
$list[] = ['question'=>$kt,'platform'=>$vt];
}
}
}
... ...