|
@@ -483,7 +483,7 @@ class AiController extends Controller
|
|
if (!is_dir($imageDir)) {
|
|
if (!is_dir($imageDir)) {
|
|
mkdir($imageDir, 0755, true);
|
|
mkdir($imageDir, 0755, true);
|
|
}
|
|
}
|
|
- $shell = 'wkhtmltopdf https://hb.swdz.com/api/ai/Pinyin?id=' . $task->id . '&type=1 ' . $path;
|
|
|
|
|
|
+ $shell = 'wkhtmltopdf https://hb.swdz.com/api/ai/Pinyin?type=1&id=' . $task->id . ' ' . $path;
|
|
exec($shell, $result, $status);
|
|
exec($shell, $result, $status);
|
|
if ($status) {
|
|
if ($status) {
|
|
$this->exit_out('生成PDF失败', ['生成PDF失败' => [$shell, $result, $status]]);
|
|
$this->exit_out('生成PDF失败', ['生成PDF失败' => [$shell, $result, $status]]);
|