shish 2 rokov pred
rodič
commit
f30ee48936
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      app-ghs/controllers/TestController.php

+ 1 - 1
app-ghs/controllers/TestController.php

@@ -49,7 +49,7 @@ class TestController extends BaseController
         $image = imagecreatetruecolor($width, $height);
 
 // 从HTML文件中读取内容
-        $html = file_get_contents('<div style="color:red;">aaa</div>');
+        $html = file_get_contents('http://www.baidu.com');
 
 // 在画布上输出HTML内容
         imagestring($image, 5, 0, 0, $html, 0x000000);