|
|
@@ -39,7 +39,6 @@ class TestController extends BaseController
|
|
|
|
|
|
public function actionIp()
|
|
|
{
|
|
|
- phpinfo();die;
|
|
|
error_reporting(-1);
|
|
|
// $ip = $_SERVER['SERVER_ADDR'] ?? '';
|
|
|
// echo $ip;
|
|
|
@@ -51,12 +50,12 @@ class TestController extends BaseController
|
|
|
// file_get_contents("http://www.google.co.uk")));
|
|
|
// $converter->convert();
|
|
|
|
|
|
-// $converter = new ImageConverter(null, [
|
|
|
-// "fmt" => "png",
|
|
|
-// "in" => "https://www.baidu.com",
|
|
|
-// "out" => "test.png"
|
|
|
-// ]);
|
|
|
-// $converter->convert();
|
|
|
+ $converter = new ImageConverter(null, [
|
|
|
+ "fmt" => "png",
|
|
|
+ "in" => "https://www.baidu.com",
|
|
|
+ "out" => "test.png"
|
|
|
+ ]);
|
|
|
+ $converter->convert();
|
|
|
|
|
|
}
|
|
|
|