|
@@ -10,6 +10,7 @@ |
|
@@ -10,6 +10,7 @@ |
|
10
|
namespace App\Console\Commands\MonthlyCount;
|
10
|
namespace App\Console\Commands\MonthlyCount;
|
|
11
|
|
11
|
|
|
12
|
use App\Helper\FormGlobalsoApi;
|
12
|
use App\Helper\FormGlobalsoApi;
|
|
|
|
13
|
+use App\Models\Com\UpdateOldInfo;
|
|
13
|
use App\Models\HomeCount\MonthCount;
|
14
|
use App\Models\HomeCount\MonthCount;
|
|
14
|
use App\Models\Project\Project;
|
15
|
use App\Models\Project\Project;
|
|
15
|
use App\Models\Visit\Visit;
|
16
|
use App\Models\Visit\Visit;
|
|
@@ -35,8 +36,10 @@ class UpgradeProjectCount extends Command |
|
@@ -35,8 +36,10 @@ class UpgradeProjectCount extends Command |
|
35
|
protected $description = '升级项目统计';
|
36
|
protected $description = '升级项目统计';
|
|
36
|
|
37
|
|
|
37
|
public function handle(){
|
38
|
public function handle(){
|
|
38
|
- $project_id = 739;
|
|
|
|
39
|
- $url = 'www.flooringmanufacture.com';
|
39
|
+ $project_id = 547;
|
|
|
|
40
|
+ $oldModel = new UpdateOldInfo();
|
|
|
|
41
|
+ $info = $oldModel->read(['project_id'=>$project_id]);
|
|
|
|
42
|
+ $url = $info['old_domain_online'];
|
|
40
|
ProjectServer::useProject($project_id);
|
43
|
ProjectServer::useProject($project_id);
|
|
41
|
$this->count($project_id,$url);
|
44
|
$this->count($project_id,$url);
|
|
42
|
|
45
|
|