|
...
|
...
|
@@ -11,6 +11,7 @@ namespace App\Console\Commands\Geo; |
|
|
|
|
|
|
|
use App\Models\Geo\GeoPlatform;
|
|
|
|
use App\Models\Geo\GeoQuestion;
|
|
|
|
use App\Models\Geo\GeoQuestionLog;
|
|
|
|
use App\Models\Geo\GeoQuestionResult;
|
|
|
|
use App\Models\Project\Project;
|
|
|
|
use App\Services\Geo\GeoService;
|
|
...
|
...
|
@@ -98,6 +99,15 @@ class GeoQuestionRes extends Command |
|
|
|
}else{
|
|
|
|
$geoResultModel->edit($data,['id'=>$resultInfo['id']]);
|
|
|
|
}
|
|
|
|
$data_log = [
|
|
|
|
'project_id'=>$info['project_id'],
|
|
|
|
'question_id'=>$info['id'],
|
|
|
|
'platform'=>$p_item,
|
|
|
|
'question'=>$q_item,
|
|
|
|
'text'=>json_encode($result_data ?? [],true),
|
|
|
|
];
|
|
|
|
$geoLogModel = new GeoQuestionLog();
|
|
|
|
$geoLogModel->addReturnId($data_log);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//更新下次执行时间
|
...
|
...
|
|