Ver código fonte

调整二维码样式

15954078560 3 anos atrás
pai
commit
f366ac1b1c
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      addons/qrcode/config.php
  2. 1 1
      application/api/controller/Index.php

+ 1 - 1
addons/qrcode/config.php

@@ -18,7 +18,7 @@ return [
         'title' => '默认宽高',
         'type' => 'number',
         'content' => [],
-        'value' => '220',
+        'value' => '200',
         'rule' => 'required',
         'msg' => '',
         'tip' => '',

+ 1 - 1
application/api/controller/Index.php

@@ -293,7 +293,7 @@ class Index extends Api
         $target_image = imagecreatefromstring(file_get_contents($target));
         list($target_width, $target_height, $target_type) = getimagesize($target);
 //        imagecopy($background_iamge , $target_image , 350, 850, 0, 0, $target_width, $target_height);
-        imagecopy($background_iamge , $target_image , 468, 1028, 0, 0, $target_width, $target_height);
+        imagecopy($background_iamge , $target_image , 468, 1048, 0, 0, $target_width, $target_height);
         list($background_width, $background_height, $background_type) = getimagesize($background);
         switch ($background_type) {
             case 1://gif