Parcourir la source

1,列表修改

cloud il y a 1 mois
Parent
commit
b6bb08fd5a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      application/api/controller/Index.php

+ 1 - 1
application/api/controller/Index.php

@@ -85,7 +85,7 @@ class Index extends Api
 
         $data = $news->toArray();
         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) {
             if (isset($data[$field])) {