moonsflyer 6 月之前
父節點
當前提交
a15c12f5a1
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      app/common/service/GiftCardQrCodeService.php

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

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