From 851029534aa179d42605bf0e99bc0956b63a3722 Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Mon, 21 Mar 2022 10:35:24 +0800 Subject: [PATCH] fix mammoth --- 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 b5ebac2b..014e6d84 100644 --- a/application/controllers/info_amp.php +++ b/application/controllers/info_amp.php @@ -462,7 +462,7 @@ class Info_amp extends CI_Controller $yarnbin = 'C:\Users\cht77\AppData\Local\Yarn\bin\mammoth '; $test_host = '//202.103.68.62:9096'; } else { - $yarnbin = realpath(APPPATH . 'mammoth/mammoth') . ' '; + $yarnbin = 'C:\Users\lmr\AppData\Roaming\npm\mammoth '; $test_host = ''; } $command = $yarnbin . $docx_path . ' --output-dir=' . $img_dir . ' 2>&1';