正在显示
3 个修改的文件
包含
28 行增加
和
0 行删除
| @@ -129,4 +129,16 @@ class GeoQuestionResController extends BaseController | @@ -129,4 +129,16 @@ class GeoQuestionResController extends BaseController | ||
| 129 | $data = $this->logic->getLabelData(); | 129 | $data = $this->logic->getLabelData(); |
| 130 | $this->response('success',Code::SUCCESS,$data); | 130 | $this->response('success',Code::SUCCESS,$data); |
| 131 | } | 131 | } |
| 132 | + | ||
| 133 | + /** | ||
| 134 | + * @remark :根据项目获取 | ||
| 135 | + * @name :getPlatformCount | ||
| 136 | + * @author :lyh | ||
| 137 | + * @method :post | ||
| 138 | + * @time :2025/10/14 10:43 | ||
| 139 | + */ | ||
| 140 | + public function getPlatformCount(){ | ||
| 141 | + $data = $this->logic->getPlatformCount(); | ||
| 142 | + $this->response('success',Code::SUCCESS,$data); | ||
| 143 | + } | ||
| 132 | } | 144 | } |
| @@ -10,6 +10,7 @@ | @@ -10,6 +10,7 @@ | ||
| 10 | namespace App\Http\Logic\Bside\Geo; | 10 | namespace App\Http\Logic\Bside\Geo; |
| 11 | 11 | ||
| 12 | use App\Http\Logic\Bside\BaseLogic; | 12 | use App\Http\Logic\Bside\BaseLogic; |
| 13 | +use App\Models\Geo\GeoCount; | ||
| 13 | use App\Models\Geo\GeoPlatform; | 14 | use App\Models\Geo\GeoPlatform; |
| 14 | use App\Models\Geo\GeoQuestion; | 15 | use App\Models\Geo\GeoQuestion; |
| 15 | use App\Models\Geo\GeoQuestionLog; | 16 | use App\Models\Geo\GeoQuestionLog; |
| @@ -200,4 +201,18 @@ class GeoQuestionResLogic extends BaseLogic | @@ -200,4 +201,18 @@ class GeoQuestionResLogic extends BaseLogic | ||
| 200 | } | 201 | } |
| 201 | return $this->success($data); | 202 | return $this->success($data); |
| 202 | } | 203 | } |
| 204 | + | ||
| 205 | + /** | ||
| 206 | + * @remark :获取图标数据 | ||
| 207 | + * @name :getPlatformCount | ||
| 208 | + * @author :lyh | ||
| 209 | + * @method :post | ||
| 210 | + * @time :2025/10/14 10:45 | ||
| 211 | + */ | ||
| 212 | + public function getPlatformCount() | ||
| 213 | + { | ||
| 214 | + $geoCountModel = new GeoCount(); | ||
| 215 | + $lists = $geoCountModel->list(['project_id'=>$this->user['project_id']],'date',['*'],'desc',30); | ||
| 216 | + return $this->success($lists); | ||
| 217 | + } | ||
| 203 | } | 218 | } |
| @@ -766,6 +766,7 @@ Route::middleware(['bloginauth'])->group(function () { | @@ -766,6 +766,7 @@ Route::middleware(['bloginauth'])->group(function () { | ||
| 766 | Route::any('/getCount', [\App\Http\Controllers\Bside\Geo\GeoQuestionResController::class, 'getCount'])->name('geo_result_getCount');//geo设置类型统计数量 | 766 | Route::any('/getCount', [\App\Http\Controllers\Bside\Geo\GeoQuestionResController::class, 'getCount'])->name('geo_result_getCount');//geo设置类型统计数量 |
| 767 | Route::any('/countQuantity', [\App\Http\Controllers\Bside\Geo\GeoQuestionResController::class, 'countQuantity'])->name('geo_result_countQuantity');//geo统计 | 767 | Route::any('/countQuantity', [\App\Http\Controllers\Bside\Geo\GeoQuestionResController::class, 'countQuantity'])->name('geo_result_countQuantity');//geo统计 |
| 768 | Route::any('/getSearchDate', [\App\Http\Controllers\Bside\Geo\GeoQuestionResController::class, 'getSearchDate'])->name('geo_result_getSearchDate');//搜索记录时间 | 768 | Route::any('/getSearchDate', [\App\Http\Controllers\Bside\Geo\GeoQuestionResController::class, 'getSearchDate'])->name('geo_result_getSearchDate');//搜索记录时间 |
| 769 | + Route::any('/getPlatformCount', [\App\Http\Controllers\Bside\Geo\GeoQuestionResController::class, 'getPlatformCount'])->name('geo_result_getPlatformCount');//搜索记录时间 | ||
| 769 | }); | 770 | }); |
| 770 | }); | 771 | }); |
| 771 | //无需登录验证的路由组 | 772 | //无需登录验证的路由组 |
-
请 注册 或 登录 后发表评论