feat(后台): 精彩事件后台上传图片

This commit is contained in:
luying
2023-04-11 17:26:46 +08:00
parent efa6951d90
commit 348ede5c63
3 changed files with 30 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ function getPrefixByEnv(env: string) {
case 'monitor':
case 'alpha':
case 'stable':
case 'distribute':
return CDN_URL_PREFIX_ZYZ;
case 'sq1':
case 'sq4':
@@ -62,3 +63,16 @@ export function getRemoteQrCodeUrl(env: string, fileName: string) {
const rplUrl = `${getPrefixByEnv(env)}/img/${md5(env).substring(0, 4)}/qrcode/` + fileName;
return rplUrl;
}
export function getLocalPopNoticeUrl(curEnv: string) {
if(curEnv == 'development') {
return './img'
} else {
return `/zyz_logs/img/popNotice`;
}
}
export function getRemotePopNoticeUrl(curEnv: string, fileName: string) {
const rplUrl = `${getPrefixByEnv(curEnv)}/img/popNotice/` + fileName;
return rplUrl;
}