|
@@ -85,7 +85,7 @@ class Index extends Api
|
|
|
|
|
|
|
|
$data = $news->toArray();
|
|
$data = $news->toArray();
|
|
|
if (!empty($data['image']) && strpos($data['image'], 'http') !== 0) {
|
|
if (!empty($data['image']) && strpos($data['image'], 'http') !== 0) {
|
|
|
- $data['image'] = 'http://' . $this->request->host() . $data['image'];
|
|
|
|
|
|
|
+ $data['image'] = 'https://' . $this->request->host() . $data['image'];
|
|
|
}
|
|
}
|
|
|
foreach (['content', 'intro', 'business_scope'] as $field) {
|
|
foreach (['content', 'intro', 'business_scope'] as $field) {
|
|
|
if (isset($data[$field])) {
|
|
if (isset($data[$field])) {
|