正在显示
3 个修改的文件
包含
35 行增加
和
0 行删除
| @@ -29,6 +29,27 @@ class GeoConfirmController extends BaseController | @@ -29,6 +29,27 @@ class GeoConfirmController extends BaseController | ||
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | /** | 31 | /** |
| 32 | + * @remark :确认信息详情 | ||
| 33 | + * @name :getInfo | ||
| 34 | + * @author :lyh | ||
| 35 | + * @method :post | ||
| 36 | + * @time :2025/10/30 09:08 | ||
| 37 | + */ | ||
| 38 | + public function getInfo() | ||
| 39 | + { | ||
| 40 | + $this->request->validate([ | ||
| 41 | + 'project_id' => 'required', | ||
| 42 | + 'type' => 'required|integer', | ||
| 43 | + ], [ | ||
| 44 | + 'project_id.required' => '项目ID不能为空', | ||
| 45 | + 'type.required' => '确定数据类型不能为空', | ||
| 46 | + 'type.integer' => '确定数据类型不正确', | ||
| 47 | + ]); | ||
| 48 | + $data = $this->logic->getConfirmInfo(); | ||
| 49 | + $this->response('success', Code::SUCCESS, $data); | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + /** | ||
| 32 | * 保存确认数据, 并推送微信群 | 53 | * 保存确认数据, 并推送微信群 |
| 33 | * @param Request $request | 54 | * @param Request $request |
| 34 | * @throws \App\Exceptions\AsideGlobalException | 55 | * @throws \App\Exceptions\AsideGlobalException |
| @@ -57,4 +57,17 @@ class GeoConfirmLogic extends BaseLogic | @@ -57,4 +57,17 @@ class GeoConfirmLogic extends BaseLogic | ||
| 57 | } | 57 | } |
| 58 | return $this->success(['id'=>$id]); | 58 | return $this->success(['id'=>$id]); |
| 59 | } | 59 | } |
| 60 | + | ||
| 61 | + /** | ||
| 62 | + * @remark :获取数据详情 | ||
| 63 | + * @name :getInfo | ||
| 64 | + * @author :lyh | ||
| 65 | + * @method :post | ||
| 66 | + * @time :2025/10/30 09:13 | ||
| 67 | + */ | ||
| 68 | + public function getConfirmInfo() | ||
| 69 | + { | ||
| 70 | + $data = $this->model->read($this->param); | ||
| 71 | + return $this->success($data); | ||
| 72 | + } | ||
| 60 | } | 73 | } |
| @@ -595,6 +595,7 @@ Route::middleware(['aloginauth'])->group(function () { | @@ -595,6 +595,7 @@ Route::middleware(['aloginauth'])->group(function () { | ||
| 595 | //geo客户确认信息 | 595 | //geo客户确认信息 |
| 596 | Route::prefix('confirm')->group(function () { | 596 | Route::prefix('confirm')->group(function () { |
| 597 | Route::any('/saveConfirmContent', [Aside\Geo\GeoConfirmController::class, 'saveConfirmContent'])->name('admin.geo_confirm_saveConfirmContent'); | 597 | Route::any('/saveConfirmContent', [Aside\Geo\GeoConfirmController::class, 'saveConfirmContent'])->name('admin.geo_confirm_saveConfirmContent'); |
| 598 | + Route::any('/getInfo', [Aside\Geo\GeoConfirmController::class, 'getInfo'])->name('admin.geo_confirm_getInfo'); | ||
| 598 | }); | 599 | }); |
| 599 | //geoai文章任务管理 | 600 | //geoai文章任务管理 |
| 600 | Route::prefix('writing_task')->group(function () { | 601 | Route::prefix('writing_task')->group(function () { |
-
请 注册 或 登录 后发表评论