作者 lyh

GXgeo设置

... ... @@ -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);
}
}
//更新下次执行时间
... ...
<?php
/**
* @remark :
* @name :GeoQuestionLog.php
* @author :lyh
* @method :post
* @time :2025/7/4 9:31
*/
namespace App\Models\Geo;
use App\Models\Base;
/**
* @remark :geo设置请求日志
* @name :GeoQuestionLog
* @author :lyh
* @method :post
* @time :2025/7/4 9:32
*/
class GeoQuestionLog extends Base
{
protected $table = 'gl_geo_question_log';
}
... ...