|
@@ -37,17 +37,21 @@ class DistAdminDistributor extends Model
|
|
|
{
|
|
|
$domain = '';
|
|
|
$row = $this->where('id', $distId)->first();
|
|
|
+ $http = 'http://';
|
|
|
+ if (env('ADMIN_HTTPS') == true) {
|
|
|
+ $http = 'https://';
|
|
|
+ }
|
|
|
if ($row) {
|
|
|
if ($type == 0) {
|
|
|
if ($row->domain_type == 0) {
|
|
|
- $domain = 'http://'.$row->secondary_domain;
|
|
|
+ $domain = $http.$row->secondary_domain;
|
|
|
} else {
|
|
|
- $domain = 'http://'.$row->custom_domain;
|
|
|
+ $domain = $http.$row->custom_domain;
|
|
|
}
|
|
|
} else if ($type == 1) {
|
|
|
- $domain = 'http://'.$row->secondary_domain;
|
|
|
+ $domain = $http.$row->secondary_domain;
|
|
|
} else {
|
|
|
- $domain = 'http://'.$row->custom_domain;
|
|
|
+ $domain = $http.$row->custom_domain;
|
|
|
}
|
|
|
}
|
|
|
if (env('DIST_SITE_PORT') != 80) {
|