moonsflyer hace 4 meses
padre
commit
0eb7c46cd5
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      app/common/service/GiftCardQrCodeService.php

+ 5 - 4
app/common/service/GiftCardQrCodeService.php

@@ -47,10 +47,11 @@ class GiftCardQrCodeService
             $data = [
                 'scene' => $scene,
                 'page' => $page,
-                'width' => 280,
-                'auto_color' => false,
-                'line_color' => ['r' => 0, 'g' => 0, 'b' => 0],
-                'is_hyaline' => false
+                'width' => 430,  // 推荐使用430像素,确保方形
+                'auto_color' => false,  // 不自动配色
+                'line_color' => ['r' => 0, 'g' => 0, 'b' => 0],  // 黑色线条
+                'is_hyaline' => true,   // 透明背景,去除logo区域
+                'env_version' => 'release'  // 添加版本参数
             ];
 
             Log::info('生成小程序码参数', [