作者 lyh

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

@@ -7,21 +7,21 @@ @@ -7,21 +7,21 @@
7 * @time :2025/7/1 16:43 7 * @time :2025/7/1 16:43
8 */ 8 */
9 9
10 -namespace App\Console\Commands\WhiteHatProject; 10 +namespace App\Console\Commands\AuthorityScore;
11 11
12 -use App\Models\AuthorityScore\AuthorityScore; 12 +use App\Models\AuthorityScore\AuthorityScore as AuthorityScoreModel;
13 use App\Models\Domain\DomainInfo; 13 use App\Models\Domain\DomainInfo;
14 use App\Models\Project\Project; 14 use App\Models\Project\Project;
15 use Illuminate\Console\Command; 15 use Illuminate\Console\Command;
16 16
17 -class WhiteHatLinkData extends Command 17 +class AuthorityScore extends Command
18 { 18 {
19 /** 19 /**
20 * The name and signature of the console command. 20 * The name and signature of the console command.
21 * 21 *
22 * @var string 22 * @var string
23 */ 23 */
24 - protected $signature = 'white_hat_link_data'; 24 + protected $signature = 'authority_score';
25 25
26 /** 26 /**
27 * The console command description. 27 * The console command description.
@@ -65,7 +65,7 @@ class WhiteHatLinkData extends Command @@ -65,7 +65,7 @@ class WhiteHatLinkData extends Command
65 * @time :2025/7/1 17:23 65 * @time :2025/7/1 17:23
66 */ 66 */
67 public function saveHandleData($data,$project_id){ 67 public function saveHandleData($data,$project_id){
68 - $authorityScoreModel = new AuthorityScore(); 68 + $authorityScoreModel = new AuthorityScoreModel();
69 return $authorityScoreModel->addReturnId([ 69 return $authorityScoreModel->addReturnId([
70 'project_id'=>$project_id, 70 'project_id'=>$project_id,
71 'ascore'=>(int)$data['ascore'], 71 'ascore'=>(int)$data['ascore'],