forked from natuka/web.puabadge.com
修改:优化手机端效果图点云效果
This commit is contained in:
1 parent
605bd894c5
commit
5892c47a6b
5 files changed
+132
-43
No files matched your search
+5
-1
@@ -4,7 +4,11 @@ const PREFIX = 'douyin'
|
||||
|
||||
function normalizeOssUrl(url: string) {
|
||||
if (!url) return ''
|
||||
return String(url).replace(/\\u0026/gi, '&').replace(/\\u003d/gi, '=')
|
||||
let s = String(url).replace(/\\u0026/gi, '&').replace(/\\u003d/gi, '=').trim()
|
||||
// 真机 https 页加载 http 图会被拦截,统一升 https
|
||||
if (s.indexOf('//') === 0) s = `https:${s}`
|
||||
if (/^http:\/\//i.test(s)) s = `https://${s.slice(7)}`
|
||||
return s
|
||||
}
|
||||
|
||||
function guessContentType(file: File | Blob, filename?: string) {
|
||||
|
||||
Reference in new issue
Block a user