|
@@ -38,7 +38,7 @@ class ServiceCount extends Command |
|
@@ -38,7 +38,7 @@ class ServiceCount extends Command |
|
38
|
* @time :2024/1/29 15:31
|
38
|
* @time :2024/1/29 15:31
|
|
39
|
*/
|
39
|
*/
|
|
40
|
public function handle(){
|
40
|
public function handle(){
|
|
41
|
- $this->serverConfigCount();
|
41
|
+ return $this->serverConfigCount();
|
|
42
|
}
|
42
|
}
|
|
43
|
|
43
|
|
|
44
|
/**
|
44
|
/**
|
|
@@ -52,7 +52,7 @@ class ServiceCount extends Command |
|
@@ -52,7 +52,7 @@ class ServiceCount extends Command |
|
52
|
$model = new ServerConfig();
|
52
|
$model = new ServerConfig();
|
|
53
|
$list = $model->list();
|
53
|
$list = $model->list();
|
|
54
|
$projectModel = new Project();
|
54
|
$projectModel = new Project();
|
|
55
|
- foreach ($list as $k => $v){
|
55
|
+ foreach ($list as $v){
|
|
56
|
if($v['type'] == 1){
|
56
|
if($v['type'] == 1){
|
|
57
|
$count = $projectModel->formatQuery(['serve_id'=>$v['id']])->count();
|
57
|
$count = $projectModel->formatQuery(['serve_id'=>$v['id']])->count();
|
|
58
|
//服务器
|
58
|
//服务器
|