作者 lyh

gx

@@ -33,7 +33,7 @@ class UpgradeProjectCount extends Command @@ -33,7 +33,7 @@ class UpgradeProjectCount extends Command
33 protected $description = '升级项目统计'; 33 protected $description = '升级项目统计';
34 34
35 public function handle(){ 35 public function handle(){
36 - $project_id = 739; 36 + $project_id = 547;
37 ProjectServer::useProject($project_id); 37 ProjectServer::useProject($project_id);
38 $this->count($project_id); 38 $this->count($project_id);
39 DB::disconnect('custom_mysql'); 39 DB::disconnect('custom_mysql');
@@ -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
@@ -2,9 +2,10 @@ @@ -2,9 +2,10 @@
2 2
3 namespace App\Models\Com; 3 namespace App\Models\Com;
4 4
  5 +use App\Models\Base;
5 use Illuminate\Database\Eloquent\Model; 6 use Illuminate\Database\Eloquent\Model;
6 7
7 -class UpdateOldInfo extends Model 8 +class UpdateOldInfo extends Base
8 { 9 {
9 //设置关联表名 10 //设置关联表名
10 protected $table = 'gl_update_old_info'; 11 protected $table = 'gl_update_old_info';