15954078560 3 年之前
父節點
當前提交
e93037a96e
共有 3 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      application/api/controller/Index.php
  2. 二進制
      public/assets/img/inviteimg.png
  3. 二進制
      public/assets/img/inviteimgyuan.png

+ 4 - 3
application/api/controller/Index.php

@@ -218,9 +218,9 @@ class Index extends Api
         //旋转角度
         //旋转角度
         $circleSize = 0;
         $circleSize = 0;
         //左边距
         //左边距
-        $left = 383;
+        $left = 188;//383;
         //上边距
         //上边距
-        $top = 680;
+        $top = 1088;//680;
         imagefttext($img, $fontSize, $circleSize, $left, $top, $black, $font, $invitecode);
         imagefttext($img, $fontSize, $circleSize, $left, $top, $black, $font, $invitecode);
         $filename = date("YmdHis"). $this->auth->id . rand(10000, 99999) . ".jpeg";
         $filename = date("YmdHis"). $this->auth->id . rand(10000, 99999) . ".jpeg";
         $path = "/uploads/qrcode/".$filename;
         $path = "/uploads/qrcode/".$filename;
@@ -274,7 +274,8 @@ class Index extends Api
 
 
         $target_image = imagecreatefromstring(file_get_contents($target));
         $target_image = imagecreatefromstring(file_get_contents($target));
         list($target_width, $target_height, $target_type) = getimagesize($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 , 350, 850, 0, 0, $target_width, $target_height);
+        imagecopy($background_iamge , $target_image , 468, 1028, 0, 0, $target_width, $target_height);
         list($background_width, $background_height, $background_type) = getimagesize($background);
         list($background_width, $background_height, $background_type) = getimagesize($background);
         switch ($background_type) {
         switch ($background_type) {
             case 1://gif
             case 1://gif

二進制
public/assets/img/inviteimg.png


二進制
public/assets/img/inviteimgyuan.png