shish há 2 anos atrás
pai
commit
2a341892a5
1 ficheiros alterados com 2 adições e 2 exclusões
  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();
         $prefix = imgUtil::getPrefix();
         $url = $prefix . 'poster/mini_bg.jpg?x-oss-process=image';
         $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 ?? '';
         $name = $item->name ?? '';
         $nameBase64 = stringUtil::ossBase64($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");
         $file = fopen($url, "rb");
         Header("Content-type:  application/octet-stream ");
         Header("Content-type:  application/octet-stream ");