作者 lyh

gx

... ... @@ -58,6 +58,9 @@ class Count extends Command
$v['test_domain'] = $info['domain'];
}
}
if($v['type'] == Project::TYPE_ZERO){
continue;
}
$arr = [];
//统计时间
$arr['date'] = $yesterday;
... ... @@ -168,6 +171,7 @@ class Count extends Command
public function selectParam(){
$select = [
'gl_project.id AS id',
'gl_project.type AS type',
'gl_project.extend_type AS extend_type',
'gl_project_deploy_build.test_domain AS test_domain',
'gl_project_deploy_optimize.domain AS domain',
... ...
... ... @@ -4,6 +4,7 @@ namespace App\Console\Commands\MonthlyCount;
use App\Helper\FormGlobalsoApi;
use App\Models\Domain\DomainInfo;
use App\Models\Project\Project;
use App\Services\ProjectServer;
use Carbon\Carbon;
use Illuminate\Console\Command;
... ... @@ -45,6 +46,9 @@ class InquiryMonthlyCount extends Command
$endTime = Carbon::now()->subMonth()->endOfMonth()->toDateString();
$domainInfo = new DomainInfo();
foreach ($list as $value){
if($value['type'] == Project::TYPE_ZERO){
continue;
}
$value = (array)$value;
if(!empty($value['domain'])){
$info = $domainInfo->read(['id'=>$value['domain']]);
... ... @@ -177,6 +181,7 @@ class InquiryMonthlyCount extends Command
public function selectParam(){
$select = [
'gl_project.id AS id',
'gl_project.type AS type',
'gl_project.extend_type AS extend_type',
'gl_project_deploy_build.test_domain AS test_domain',
'gl_project_deploy_optimize.domain AS domain',
... ...
... ... @@ -241,7 +241,7 @@ class SyncProject extends Command
$projectModel = new Project();
$info = $projectModel->read(['from_order_id'=>$param['from_order_id']]);
if($info !== false){
$projectModel->edit($param, ['from_order_id' => $param['from_order_id']]);
$projectModel->edit($param, ['id' => $info['id']]);
return $info['id'];
}else{
return $projectModel->addReturnId($param);
... ...