diff --git a/src/app.tsx b/src/app.tsx
index 9ff51e5..2cdb97e 100644
--- a/src/app.tsx
+++ b/src/app.tsx
@@ -7,8 +7,6 @@ import AppContext from './contexts/AppContext'
import { UserProvider } from './contexts/UserContext'
import { CartProvider } from './contexts/CartContext'
import ErrorBoundary from './components/ErrorBoundary'
-import PrivacyModal from './components/PrivacyModal'
-import { privacyManager } from './utils/privacy'
import './app.scss'
type AppProps = {
@@ -24,24 +22,6 @@ function App(props: AppProps) {
if (savedTheme === 'light' || savedTheme === 'dark') {
setTheme(savedTheme)
}
-
- // 微信隐私协议(基础库 3.16.1+ 强制)
- // getPhoneNumber 等敏感能力必须由用户点击 agreePrivacyAuthorization 按钮授权。
- const wxAny: any = Taro
- if (typeof wxAny.getPrivacySetting === 'function') {
- wxAny.getPrivacySetting({
- success: (res: any) => {
- if (res?.privacyContractName) {
- privacyManager.setPrivacyContractName(res.privacyContractName)
- }
- },
- })
- }
- if (typeof wxAny.onNeedPrivacyAuthorization === 'function') {
- wxAny.onNeedPrivacyAuthorization((resolve: any) => {
- privacyManager.show(resolve)
- })
- }
})
useDidShow(() => {})
@@ -65,7 +45,6 @@ function App(props: AppProps) {
{props.children}
-