作者 lyh

扩展模块不允许使用默认路由

1 <?php 1 <?php
2 /** 2 /**
3 * @remark : 3 * @remark :
4 - * @name :WhiteHatReportController.php 4 + * @name :AuthorityScoreController.php
5 * @author :lyh 5 * @author :lyh
6 * @method :post 6 * @method :post
7 * @time :2025/7/1 11:11 7 * @time :2025/7/1 11:11
@@ -11,22 +11,22 @@ namespace App\Http\Controllers\Bside\BCom; @@ -11,22 +11,22 @@ namespace App\Http\Controllers\Bside\BCom;
11 11
12 use App\Enums\Common\Code; 12 use App\Enums\Common\Code;
13 use App\Http\Controllers\Bside\BaseController; 13 use App\Http\Controllers\Bside\BaseController;
14 -use App\Http\Logic\Bside\Com\WhiteHatReportLogic; 14 +use App\Http\Logic\Bside\BCom\AuthorityScoreLogic;
15 use Illuminate\Http\Request; 15 use Illuminate\Http\Request;
16 16
17 /** 17 /**
18 * @remark :白帽版本报表 18 * @remark :白帽版本报表
19 - * @name :WhiteHatReportController 19 + * @name :AuthorityScoreController
20 * @author :lyh 20 * @author :lyh
21 * @method :post 21 * @method :post
22 * @time :2025/7/1 11:12 22 * @time :2025/7/1 11:12
23 */ 23 */
24 -class WhiteHatReportController extends BaseController 24 +class AuthorityScoreController extends BaseController
25 { 25 {
26 public function __construct(Request $request) 26 public function __construct(Request $request)
27 { 27 {
28 parent::__construct($request); 28 parent::__construct($request);
29 - $this->logic = new WhiteHatReportLogic(); 29 + $this->logic = new AuthorityScoreLogic();
30 } 30 }
31 31
32 /** 32 /**
@@ -36,13 +36,13 @@ class WhiteHatReportController extends BaseController @@ -36,13 +36,13 @@ class WhiteHatReportController extends BaseController
36 * @method :post 36 * @method :post
37 * @time :2025/7/1 11:13 37 * @time :2025/7/1 11:13
38 */ 38 */
39 - public function whiteHatReportInfo(){ 39 + public function AuthorityScoreInfo(){
40 $this->request->validate([ 40 $this->request->validate([
41 'date'=>'required', 41 'date'=>'required',
42 ], [ 42 ], [
43 'date.required' => '请选择报表时间', 43 'date.required' => '请选择报表时间',
44 ]); 44 ]);
45 - $data = $this->logic->LogicWhiteHatReportInfo(); 45 + $data = $this->logic->LogicAuthorityScoreInfo();
46 $this->response('success',Code::SUCCESS,$data); 46 $this->response('success',Code::SUCCESS,$data);
47 } 47 }
48 } 48 }
1 <?php 1 <?php
2 /** 2 /**
3 * @remark : 3 * @remark :
4 - * @name :WhiteHatReportLogic.php 4 + * @name :AuthorityScoreLogic.php
5 * @author :lyh 5 * @author :lyh
6 * @method :post 6 * @method :post
7 * @time :2025/7/1 11:15 7 * @time :2025/7/1 11:15
8 */ 8 */
9 9
10 -namespace App\Http\Logic\Bside\Com; 10 +namespace App\Http\Logic\Bside\BCom;
11 11
12 use App\Http\Logic\Bside\BaseLogic; 12 use App\Http\Logic\Bside\BaseLogic;
13 use App\Models\Ai\AiBlog; 13 use App\Models\Ai\AiBlog;
@@ -17,12 +17,12 @@ use App\Models\SeoSetting\LinkData; @@ -17,12 +17,12 @@ use App\Models\SeoSetting\LinkData;
17 17
18 /** 18 /**
19 * @remark :报表详情数据 19 * @remark :报表详情数据
20 - * @name :WhiteHatReportLogic 20 + * @name :AuthorityScoreLogic
21 * @author :lyh 21 * @author :lyh
22 * @method :post 22 * @method :post
23 * @time :2025/7/1 11:15 23 * @time :2025/7/1 11:15
24 */ 24 */
25 -class WhiteHatReportLogic extends BaseLogic 25 +class AuthorityScoreLogic extends BaseLogic
26 { 26 {
27 public function __construct() 27 public function __construct()
28 { 28 {
@@ -37,7 +37,7 @@ class WhiteHatReportLogic extends BaseLogic @@ -37,7 +37,7 @@ class WhiteHatReportLogic extends BaseLogic
37 * @method :post 37 * @method :post
38 * @time :2025/7/1 11:43 38 * @time :2025/7/1 11:43
39 */ 39 */
40 - public function LogicWhiteHatReportInfo(){ 40 + public function LogicAuthorityScoreInfo(){
41 $data = []; 41 $data = [];
42 $bSeoModel = new RankDataBmseo(); 42 $bSeoModel = new RankDataBmseo();
43 $bSeoInfo = $bSeoModel->read(['project_id'=>$this->user['project_id'],'lang'=>''],['first_num','first_page_num','first_three_pages_num','first_five_pages_num','first_ten_pages_num','indexed_pages_num']); 43 $bSeoInfo = $bSeoModel->read(['project_id'=>$this->user['project_id'],'lang'=>''],['first_num','first_page_num','first_three_pages_num','first_five_pages_num','first_ten_pages_num','indexed_pages_num']);
@@ -746,7 +746,7 @@ Route::middleware(['bloginauth'])->group(function () { @@ -746,7 +746,7 @@ Route::middleware(['bloginauth'])->group(function () {
746 }); 746 });
747 //白帽版本 747 //白帽版本
748 Route::prefix('white_hat_report')->group(function () { 748 Route::prefix('white_hat_report')->group(function () {
749 - Route::any('/whiteHatReportInfo', [\App\Http\Controllers\Bside\BCom\WhiteHatReportController::class,'whiteHatReportInfo'])->name('white_hat_report_whiteHatReportInfo'); 749 + Route::any('/whiteHatReportInfo', [\App\Http\Controllers\Bside\BCom\AuthorityScoreController::class,'whiteHatReportInfo'])->name('white_hat_report_whiteHatReportInfo');
750 }); 750 });
751 }); 751 });
752 //无需登录验证的路由组 752 //无需登录验证的路由组