|
...
|
...
|
@@ -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];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|