修改上传图片安全验证问题

This commit is contained in:
张成
2026-02-14 12:59:21 +08:00
parent 8688b6b82d
commit 64f0267457
54 changed files with 239 additions and 240 deletions

View File

@@ -88,7 +88,7 @@ const AiImportPopup: React.FC<AiImportPopupProps> = ({
})
}
} catch (error) {
console.error('获取剪切板失败:', error)
console.warn('获取剪切板失败:', error)
Taro.showToast({
title: '读取剪切板失败,请手动输入',
icon: 'error',
@@ -163,7 +163,7 @@ const AiImportPopup: React.FC<AiImportPopupProps> = ({
}
}
} catch (error) {
console.error('选择图片失败:', error)
console.warn('选择图片失败:', error)
if (!(typeof error === 'object' && error.errMsg && error.errMsg.includes('fail cancel'))) {
setUploadFailCount(prev => prev + 1)
Taro.showToast({

View File

@@ -53,7 +53,7 @@ const SelectStadium: React.FC<SelectStadiumProps> = ({
}
}
} catch (error) {
console.error('获取场馆列表失败:', error)
console.warn('获取场馆列表失败:', error)
} finally {
setLoading(false)
}
@@ -107,7 +107,7 @@ const SelectStadium: React.FC<SelectStadiumProps> = ({
setShowDetail(true)
},
fail: (err: { errMsg: string }) => {
console.error('选择位置失败:', err)
console.warn('选择位置失败:', err)
const { errMsg } = err || {};
if (!errMsg.includes('fail cancel')) {
Taro.showToast({

View File

@@ -152,7 +152,7 @@ const StadiumDetail = forwardRef<StadiumDetailRef, StadiumDetailProps>(({
})
},
fail: (err: { errMsg: string }) => {
console.error('选择位置失败:', err)
console.warn('选择位置失败:', err)
const { errMsg } = err || {};
if (!errMsg.includes('fail cancel')) {
Taro.showToast({