✨ feat(后台): 精彩事件后台上传图片
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user