正在显示
2 个修改的文件
包含
34 行增加
和
0 行删除
| @@ -11,6 +11,7 @@ namespace App\Console\Commands\Geo; | @@ -11,6 +11,7 @@ namespace App\Console\Commands\Geo; | ||
| 11 | 11 | ||
| 12 | use App\Models\Geo\GeoPlatform; | 12 | use App\Models\Geo\GeoPlatform; |
| 13 | use App\Models\Geo\GeoQuestion; | 13 | use App\Models\Geo\GeoQuestion; |
| 14 | +use App\Models\Geo\GeoQuestionLog; | ||
| 14 | use App\Models\Geo\GeoQuestionResult; | 15 | use App\Models\Geo\GeoQuestionResult; |
| 15 | use App\Models\Project\Project; | 16 | use App\Models\Project\Project; |
| 16 | use App\Services\Geo\GeoService; | 17 | use App\Services\Geo\GeoService; |
| @@ -98,6 +99,15 @@ class GeoQuestionRes extends Command | @@ -98,6 +99,15 @@ class GeoQuestionRes extends Command | ||
| 98 | }else{ | 99 | }else{ |
| 99 | $geoResultModel->edit($data,['id'=>$resultInfo['id']]); | 100 | $geoResultModel->edit($data,['id'=>$resultInfo['id']]); |
| 100 | } | 101 | } |
| 102 | + $data_log = [ | ||
| 103 | + 'project_id'=>$info['project_id'], | ||
| 104 | + 'question_id'=>$info['id'], | ||
| 105 | + 'platform'=>$p_item, | ||
| 106 | + 'question'=>$q_item, | ||
| 107 | + 'text'=>json_encode($result_data ?? [],true), | ||
| 108 | + ]; | ||
| 109 | + $geoLogModel = new GeoQuestionLog(); | ||
| 110 | + $geoLogModel->addReturnId($data_log); | ||
| 101 | } | 111 | } |
| 102 | } | 112 | } |
| 103 | //更新下次执行时间 | 113 | //更新下次执行时间 |
app/Models/Geo/GeoQuestionLog.php
0 → 100644
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @remark : | ||
| 4 | + * @name :GeoQuestionLog.php | ||
| 5 | + * @author :lyh | ||
| 6 | + * @method :post | ||
| 7 | + * @time :2025/7/4 9:31 | ||
| 8 | + */ | ||
| 9 | + | ||
| 10 | +namespace App\Models\Geo; | ||
| 11 | + | ||
| 12 | +use App\Models\Base; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * @remark :geo设置请求日志 | ||
| 16 | + * @name :GeoQuestionLog | ||
| 17 | + * @author :lyh | ||
| 18 | + * @method :post | ||
| 19 | + * @time :2025/7/4 9:32 | ||
| 20 | + */ | ||
| 21 | +class GeoQuestionLog extends Base | ||
| 22 | +{ | ||
| 23 | + protected $table = 'gl_geo_question_log'; | ||
| 24 | +} |
-
请 注册 或 登录 后发表评论