From a6a0584474fed2b0ed8f41b2b7abb186d0adb6e0 Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Tue, 8 Jan 2019 20:23:56 +0800 Subject: [PATCH] add shell --- application/controllers/info_amp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/info_amp.php b/application/controllers/info_amp.php index 7fe8ca5f..a82867ba 100644 --- a/application/controllers/info_amp.php +++ b/application/controllers/info_amp.php @@ -455,7 +455,7 @@ class Info_amp extends CI_Controller $test_host = ''; } $command = $yarnbin.$docx_path.' --output-dir='.$img_dir; - exec($command, $rs); + $rs = shell_exec($command); //图片处理 $scan_img = scandir($img_dir); $tmp = '';