|
...
|
...
|
@@ -12,6 +12,7 @@ namespace App\Http\Logic\Aside\Geo; |
|
|
|
use App\Http\Logic\Aside\BaseLogic;
|
|
|
|
use App\Models\Geo\GeoPlatform;
|
|
|
|
use App\Models\Geo\GeoQuestion;
|
|
|
|
use App\Models\Geo\GeoQuestionResult;
|
|
|
|
use App\Models\Project\Project;
|
|
|
|
|
|
|
|
class GeoQuestionLogic extends BaseLogic
|
|
...
|
...
|
@@ -135,4 +136,27 @@ class GeoQuestionLogic extends BaseLogic |
|
|
|
$data = $this->model->del(['id'=>['in',$this->param['ids']]]);
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取未名字的问题列表
|
|
|
|
* @return array
|
|
|
|
* @author Akun
|
|
|
|
* @date 2025/11/25 16:44
|
|
|
|
*/
|
|
|
|
public function getUnHitQuestionList(){
|
|
|
|
$data = GeoQuestionResult::where('project_id',$this->param['project_id'])->where('hit',0)->pluck('platform','question')->toArray();
|
|
|
|
$list = [];
|
|
|
|
if(!empty($data)){
|
|
|
|
$question_list = [];
|
|
|
|
foreach ($data as $key => $item){
|
|
|
|
if(in_array($key,$question_list)){
|
|
|
|
array_push($list[$key],$item);
|
|
|
|
}else{
|
|
|
|
$list[$key] = $item;
|
|
|
|
$question_list[] = $key;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|