dyjh 6 tahun lalu
induk
melakukan
fff45c455a
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      app/Http/Controllers/Api/V1/AlbumPosterController.php

+ 3 - 3
app/Http/Controllers/Api/V1/AlbumPosterController.php

xqd xqd xqd
@@ -184,7 +184,7 @@ class AlbumPosterController extends Controller
         for ($i = 0; $i <= 1; $i++) {
             $len = mb_strlen($info['introduce']);
             if ($len <= 17) {
-                $editor->text($image_poster, $info['introduce'], 20, 10, 460, new Color("#000000"), $font_bold, 0);
+                $editor->text($image_poster, $info['introduce'], 19, 10, 460, new Color("#000000"), $font_bold, 0);
                 break;
             }
             if ($i == 0) {
@@ -192,7 +192,7 @@ class AlbumPosterController extends Controller
             } else {
                 $text = mb_substr($info['introduce'], $i * 17, ($len - 17) > 10 ? 10 : ($len - 17));
             }
-            $editor->text($image_poster, $text, 20, 10, 460 + 50 * $i, new Color("#000000"), $font_bold, 0);
+            $editor->text($image_poster, $text, 19, 10, 460 + 50 * $i, new Color("#000000"), $font_bold, 0);
         }
         $editor->open($image_icon, public_path() . '/base/poster/img/phone.png');
         $editor->resizeExactWidth($image_icon, 40);
@@ -219,7 +219,7 @@ class AlbumPosterController extends Controller
             $name = $agent_check->realname;
             $phone = $agent_check->phone;
         }
-        $editor->text($image_poster, $phone, 20, 55, 575, new Color("#eb7a48"), $font, 0);
+        $editor->text($image_poster, $phone, 20, 55, 577, new Color("#eb7a48"), $font, 0);
         $editor->text($image_poster, '长按识别二维码 展示家具画册', 16, 10, 650, new Color("#666666"), $font, 0);
         $editor->open($image_qrcode, str_replace(env('CDN_URL'), public_path(), $info['qrcode']));
         $editor->resizeExactWidth($image_qrcode, 140);