|
@@ -285,7 +285,7 @@ class PrivateController extends BaseController |
|
@@ -285,7 +285,7 @@ class PrivateController extends BaseController |
|
285
|
public function getProjectOnline(Request $request)
|
285
|
public function getProjectOnline(Request $request)
|
|
286
|
{
|
286
|
{
|
|
287
|
$page_size = intval($request->input('page_size', 20));
|
287
|
$page_size = intval($request->input('page_size', 20));
|
|
288
|
- $projects = Project::select(['id', 'title', 'company', 'type', 'finish_remain_day', 'remain_day'])->whereIn('type', [2, 3, 4, 6])->where('delete_status', 0)->paginate($page_size);
|
288
|
+ $projects = Project::select(['id', 'title', 'company', 'type', 'finish_remain_day', 'remain_day'])->where('extend_type', 0)->whereIn('type', [2, 3, 4, 6])->where('delete_status', 0)->paginate($page_size);
|
|
289
|
foreach ($projects as $project) {
|
289
|
foreach ($projects as $project) {
|
|
290
|
$project->domain = $project->domainInfo ? $project->domainInfo->domain : '';
|
290
|
$project->domain = $project->domainInfo ? $project->domainInfo->domain : '';
|
|
291
|
}
|
291
|
}
|
|
@@ -354,7 +354,7 @@ class PrivateController extends BaseController |
|
@@ -354,7 +354,7 @@ class PrivateController extends BaseController |
|
354
|
public function upgradeProjectDomain()
|
354
|
public function upgradeProjectDomain()
|
|
355
|
{
|
355
|
{
|
|
356
|
$domain = Project::leftJoin('gl_domain_info', 'gl_project.id', '=', 'gl_domain_info.project_id')
|
356
|
$domain = Project::leftJoin('gl_domain_info', 'gl_project.id', '=', 'gl_domain_info.project_id')
|
|
357
|
- ->where(['gl_project.is_upgrade' => Project::IS_UPGRADE_TRUE, 'gl_project.delete_status' => Project::IS_DEL_FALSE])
|
357
|
+ ->where(['gl_project.is_upgrade' => Project::IS_UPGRADE_TRUE, 'gl_project.delete_status' => Project::IS_DEL_FALSE, 'gl_project.extend_type' => 0])
|
|
358
|
->pluck('domain')
|
358
|
->pluck('domain')
|
|
359
|
->toArray();
|
359
|
->toArray();
|
|
360
|
$list = array_filter(array_unique($domain));
|
360
|
$list = array_filter(array_unique($domain));
|