shish 1 năm trước cách đây
mục cha
commit
2a341892a5
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app-ghs/controllers/ItemController.php

+ 2 - 2
app-ghs/controllers/ItemController.php

@@ -554,12 +554,12 @@ class ItemController extends BaseController
         $prefix = imgUtil::getPrefix();
         $url = $prefix . 'poster/mini_bg.jpg?x-oss-process=image';
         //小程序码
-        $url .= '/watermark,image_' . $miniCodeBase64 . ',g_north,x_0,y_0';
+        $url .= '/watermark,image_' . $miniCodeBase64 . ',g_north,x_0,y_20';
 
         $name = $item->name ?? '';
         $nameBase64 = stringUtil::ossBase64($name);
         //标题
-        $url .= '/watermark,text_' . $nameBase64 . ',g_south,x_0,y_20';
+        $url .= '/watermark,text_' . $nameBase64 . ',g_south,x_0,y_30';
 
         $file = fopen($url, "rb");
         Header("Content-type:  application/octet-stream ");