moonsflyer 6 месяцев назад
Родитель
Сommit
93bcc91f2e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/common/service/GiftCardQrCodeService.php

+ 2 - 2
app/common/service/GiftCardQrCodeService.php

@@ -49,12 +49,12 @@ class GiftCardQrCodeService
             // 方案2:使用getQrCode方法
              $response = $app->app_code->getQrCode($page . '?' . $scene, 280
              );
-            return $response;
+
             if (!($response instanceof \EasyWeChat\Kernel\Http\StreamResponse)) {
                 Log::error('生成小程序码失败', ['response' => $response]);
                 return false;
             }
-
+            return $response;
             // 保存到本地临时目录
             $saveDir = 'resource/image/gift_card/qr_code/';
             if (!file_exists($saveDir)) {