add shell 3

hotfix/远程访问多媒体中心
LMR 7 years ago
parent dad33d68b8
commit ebb0796c9e

@ -455,7 +455,7 @@ class Info_amp extends CI_Controller
$test_host = ''; $test_host = '';
} }
$command = $yarnbin.$docx_path.' --output-dir='.$img_dir; $command = $yarnbin.$docx_path.' --output-dir='.$img_dir;
exec($command, $rs); exec($command, $rs, $st);
//图片处理 //图片处理
$scan_img = scandir($img_dir); $scan_img = scandir($img_dir);
$tmp = ''; $tmp = '';
@ -479,7 +479,7 @@ class Info_amp extends CI_Controller
echo(json_encode(array( echo(json_encode(array(
'status' => 'error', 'status' => 'error',
'html' => $command.' > '.$html_parh, 'html' => $command.' > '.$html_parh,
'rs' => print_r($rs, true) 'rs' => print_r($rs, true).' > '.$st
))); )));
return; return;
} }

Loading…
Cancel
Save