作者 lyh

gx

... ... @@ -33,7 +33,7 @@ class UpgradeProjectCount extends Command
protected $description = '升级项目统计';
public function handle(){
$project_id = 739;
$project_id = 547;
ProjectServer::useProject($project_id);
$this->count($project_id);
DB::disconnect('custom_mysql');
... ...
... ... @@ -10,6 +10,7 @@
namespace App\Console\Commands\MonthlyCount;
use App\Helper\FormGlobalsoApi;
use App\Models\Com\UpdateOldInfo;
use App\Models\HomeCount\MonthCount;
use App\Models\Project\Project;
use App\Models\Visit\Visit;
... ... @@ -35,8 +36,10 @@ class UpgradeProjectCount extends Command
protected $description = '升级项目统计';
public function handle(){
$project_id = 739;
$url = 'www.flooringmanufacture.com';
$project_id = 547;
$oldModel = new UpdateOldInfo();
$info = $oldModel->read(['project_id'=>$project_id]);
$url = $info['old_domain_online'];
ProjectServer::useProject($project_id);
$this->count($project_id,$url);
... ...
... ... @@ -2,9 +2,10 @@
namespace App\Models\Com;
use App\Models\Base;
use Illuminate\Database\Eloquent\Model;
class UpdateOldInfo extends Model
class UpdateOldInfo extends Base
{
//设置关联表名
protected $table = 'gl_update_old_info';
... ...