From e9cd01b7156a401268618fab4af74068d5bd6c2c Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 21 May 2021 16:34:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E6=88=90=E7=9A=84?= =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E7=9A=84=E6=88=AA=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/File.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/File.ts b/src/services/File.ts index 62c6f71..18cf91b 100644 --- a/src/services/File.ts +++ b/src/services/File.ts @@ -62,7 +62,7 @@ export function checkQrExists(gameId: string, version: string, shop: string) { * @return {Promise} */ export function generateCouponImg(shop: string, couponId: string, content: string) { - let subPath = `/coupon/${shop}/` + let subPath = `/coupon/${shop}` let path = generateUploadPath(subPath) let file = `${path}/${couponId}.png` if (content.search(/meta name=.+?viewport/) === -1) { @@ -85,6 +85,6 @@ export function generateCouponImg(shop: string, couponId: string, content: strin } export function getCouponUrl(shop: string, couponId: string) { - let subPath = `/coupon/${shop}/` + let subPath = `/coupon/${shop}` return `${config.file.show_url}${subPath}/${couponId}.png` }