|
@@ -23,7 +23,7 @@ class UpgradeCount extends Command |
|
@@ -23,7 +23,7 @@ class UpgradeCount extends Command |
|
23
|
*
|
23
|
*
|
|
24
|
* @var string
|
24
|
* @var string
|
|
25
|
*/
|
25
|
*/
|
|
26
|
- protected $signature = 'upgrade_count';
|
26
|
+ protected $signature = 'upgrade_counts';
|
|
27
|
|
27
|
|
|
28
|
/**
|
28
|
/**
|
|
29
|
* The console command description.
|
29
|
* The console command description.
|
|
@@ -34,7 +34,7 @@ class UpgradeCount extends Command |
|
@@ -34,7 +34,7 @@ class UpgradeCount extends Command |
|
34
|
|
34
|
|
|
35
|
public function handle(){
|
35
|
public function handle(){
|
|
36
|
$projectModel = new Project();
|
36
|
$projectModel = new Project();
|
|
37
|
- $list = $projectModel->list(['is_upgrade'=>1,'delete_status'=>0,'id'=>['<=',550]]);
|
37
|
+ $list = $projectModel->list(['is_upgrade'=>1,'delete_status'=>0]);
|
|
38
|
foreach ($list as $v) {
|
38
|
foreach ($list as $v) {
|
|
39
|
echo date('Y-m-d H:i:s') . '项目id:'.$v['id'] . PHP_EOL;
|
39
|
echo date('Y-m-d H:i:s') . '项目id:'.$v['id'] . PHP_EOL;
|
|
40
|
ProjectServer::useProject($v['id']);
|
40
|
ProjectServer::useProject($v['id']);
|