run($command); unlink($tmpPath); if ($scanResult->failed()) { Log::error('微信二维码识别失败', ['path' => $path, 'error' => $scanResult->output()]); return false; } return trim($scanResult->output()); } }