shish 1 tahun lalu
induk
melakukan
dfaf55f46a
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      app-ghs/controllers/ItemController.php

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

@@ -548,18 +548,18 @@ class ItemController extends BaseController
         //小程序码,scene不能超过32个字条
         $scene = "id=" . $id . '&sId=' . $this->shopId;
         $miniCode = miniUtil::generateUnlimitedMiniCode($merchant, $page, $scene, $ptStyle);
-        $miniCode = $miniCode . '?x-oss-process=image/resize,m_fill,h_950,w_950';
+        $miniCode = $miniCode . '?x-oss-process=image/resize,m_fill,h_450,w_450';
         $miniCodeBase64 = stringUtil::ossBase64($miniCode);
 
         $prefix = imgUtil::getPrefix();
         $url = $prefix . 'poster/mini_bg.jpg?x-oss-process=image';
         //小程序码
-        $url .= '/watermark,image_' . $miniCodeBase64 . ',g_nw,x_0,y_0';
+        $url .= '/watermark,image_' . $miniCodeBase64 . ',g_north,x_0,y_0';
 
         $name = $item->name ?? '';
         $nameBase64 = stringUtil::ossBase64($name);
         //标题
-        $url .= '/watermark,text_' . $nameBase64 . ',g_sw,x_18,y_145';
+        $url .= '/watermark,text_' . $nameBase64 . ',g_south,x_0,y_0';
 
         $file = fopen($url, "rb");
         Header("Content-type:  application/octet-stream ");