|
@@ -82,6 +82,7 @@ class FetchTicketProjects extends Command |
|
@@ -82,6 +82,7 @@ class FetchTicketProjects extends Command |
|
82
|
'website' => $item['main_url'] ?? '',
|
82
|
'website' => $item['main_url'] ?? '',
|
|
83
|
'test_website' => $item['test_url'] ?? '',
|
83
|
'test_website' => $item['test_url'] ?? '',
|
|
84
|
'is_del' => 0,
|
84
|
'is_del' => 0,
|
|
|
|
85
|
+ 'plan' => $item['plan'] ?? '',
|
|
85
|
];
|
86
|
];
|
|
86
|
if (!$project) {
|
87
|
if (!$project) {
|
|
87
|
$new = new TicketProject();
|
88
|
$new = new TicketProject();
|
|
@@ -174,12 +175,13 @@ class FetchTicketProjects extends Command |
|
@@ -174,12 +175,13 @@ class FetchTicketProjects extends Command |
|
174
|
'is_del' => $is_del,
|
175
|
'is_del' => $is_del,
|
|
175
|
'website' => !empty($item->domainInfo->domain) ? 'https://'.$item->domainInfo->domain : '',
|
176
|
'website' => !empty($item->domainInfo->domain) ? 'https://'.$item->domainInfo->domain : '',
|
|
176
|
'test_website' => $item->deploy_build->test_domain ?? '',
|
177
|
'test_website' => $item->deploy_build->test_domain ?? '',
|
|
|
|
178
|
+ 'version' => $item->version,
|
|
|
|
179
|
+ 'plan' => $item->planMap()[$item->deploy_build->plan] ?? '',
|
|
177
|
];
|
180
|
];
|
|
178
|
if (!$project) {
|
181
|
if (!$project) {
|
|
179
|
$project = new TicketProject();
|
182
|
$project = new TicketProject();
|
|
180
|
$project->uuid = $uuid;
|
183
|
$project->uuid = $uuid;
|
|
181
|
$project->post_id = $item->post_id;
|
184
|
$project->post_id = $item->post_id;
|
|
182
|
- $project->version = 6;
|
|
|
|
183
|
$project->table_id = $item->id;
|
185
|
$project->table_id = $item->id;
|
|
184
|
foreach ($fields as $k => $v) {
|
186
|
foreach ($fields as $k => $v) {
|
|
185
|
$project->$k = $v;
|
187
|
$project->$k = $v;
|