正在显示
3 个修改的文件
包含
48 行增加
和
1 行删除
| @@ -96,7 +96,7 @@ class ReplaceHtmlController extends BaseController | @@ -96,7 +96,7 @@ class ReplaceHtmlController extends BaseController | ||
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | /** | 98 | /** |
| 99 | - * @remark :还原 | 99 | + * @remark :主任务还原 |
| 100 | * @name :reductionHtml | 100 | * @name :reductionHtml |
| 101 | * @author :lyh | 101 | * @author :lyh |
| 102 | * @method :post | 102 | * @method :post |
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @remark : | ||
| 4 | + * @name :TutorialController.php | ||
| 5 | + * @author :lyh | ||
| 6 | + * @method :post | ||
| 7 | + * @time :2024/5/14 9:59 | ||
| 8 | + */ | ||
| 9 | + | ||
| 10 | +namespace App\Http\Controllers\Bside\BCom; | ||
| 11 | + | ||
| 12 | +use App\Enums\Common\Code; | ||
| 13 | +use App\Http\Controllers\Bside\BaseController; | ||
| 14 | +use App\Models\Tutorial\Tutorial; | ||
| 15 | + | ||
| 16 | +/** | ||
| 17 | + * @remark :oa教程 | ||
| 18 | + * @name :TutorialController | ||
| 19 | + * @author :lyh | ||
| 20 | + * @method :post | ||
| 21 | + * @time :2024/5/14 10:00 | ||
| 22 | + */ | ||
| 23 | +class TutorialController extends BaseController | ||
| 24 | +{ | ||
| 25 | + /** | ||
| 26 | + * @remark :oa列表 | ||
| 27 | + * @name :lists | ||
| 28 | + * @author :lyh | ||
| 29 | + * @method :post | ||
| 30 | + * @time :2024/5/14 10:00 | ||
| 31 | + */ | ||
| 32 | + public function lists(Tutorial $tutorial){ | ||
| 33 | + $this->map['status'] = 0; | ||
| 34 | + $lists = $tutorial->lists($this->map,$this->page,$this->row,$this->order); | ||
| 35 | + if(!empty($lists) && !empty($lists['list'])){ | ||
| 36 | + foreach ($lists['list'] as $k => $v){ | ||
| 37 | + $v['download_url'] = url('b/file_manager_downLoad?path='.$v['path']); | ||
| 38 | + $lists['list'][$k] = $v; | ||
| 39 | + } | ||
| 40 | + } | ||
| 41 | + $this->response('success',Code::SUCCESS,$lists); | ||
| 42 | + } | ||
| 43 | +} |
| @@ -530,6 +530,10 @@ Route::middleware(['bloginauth'])->group(function () { | @@ -530,6 +530,10 @@ Route::middleware(['bloginauth'])->group(function () { | ||
| 530 | Route::any('/month', [\App\Http\Controllers\Bside\BCom\MonthReportController::class, 'getMonth'])->name('month_report_getMonth'); | 530 | Route::any('/month', [\App\Http\Controllers\Bside\BCom\MonthReportController::class, 'getMonth'])->name('month_report_getMonth'); |
| 531 | Route::any('/read', [\App\Http\Controllers\Bside\BCom\MonthReportController::class, 'monthReportInfo'])->name('month_report_read'); | 531 | Route::any('/read', [\App\Http\Controllers\Bside\BCom\MonthReportController::class, 'monthReportInfo'])->name('month_report_read'); |
| 532 | }); | 532 | }); |
| 533 | + //oa教程 | ||
| 534 | + Route::prefix('tutorial')->group(function () { | ||
| 535 | + Route::any('/', [\App\Http\Controllers\Bside\BCom\TutorialController::class, 'lists'])->name('tutorial_lists'); | ||
| 536 | + }); | ||
| 533 | }); | 537 | }); |
| 534 | //无需登录验证的路由组 | 538 | //无需登录验证的路由组 |
| 535 | Route::group([], function () { | 539 | Route::group([], function () { |
-
请 注册 或 登录 后发表评论