|
|
@@ -60,6 +60,9 @@ export default function CheckAccess(props: { record: any, count: number }) {
|
|
|
useEffect(() => {
|
|
|
var obj = props.record
|
|
|
if (obj.access) {
|
|
|
+ if (!user.test_user) {
|
|
|
+ return
|
|
|
+ }
|
|
|
global.ring = ring;
|
|
|
const currentStatus = obj.access.current.qualification.status
|
|
|
const preStatus = obj.access.previous.qualification.status
|
|
|
@@ -135,6 +138,9 @@ export default function CheckAccess(props: { record: any, count: number }) {
|
|
|
setKeepContent(false)
|
|
|
}
|
|
|
global.checkAccess = (acccessData: any) => {
|
|
|
+ if (!user.test_user) {
|
|
|
+ return
|
|
|
+ }
|
|
|
const currentStatus = acccessData.current.qualification.status
|
|
|
const preStatus = acccessData.previous.qualification.status
|
|
|
access = acccessData
|
|
|
@@ -475,10 +481,10 @@ export default function CheckAccess(props: { record: any, count: number }) {
|
|
|
}
|
|
|
return <View>
|
|
|
{
|
|
|
- showFastAlert && process.env.TARO_ENV == 'weapp' && alertPop()
|
|
|
+ user.test_user && showFastAlert && process.env.TARO_ENV == 'weapp' && alertPop()
|
|
|
}
|
|
|
{
|
|
|
- showFastAlert && rnKeep && process.env.TARO_ENV == 'rn' && <Modal transparent={true}>
|
|
|
+ user.test_user && showFastAlert && rnKeep && process.env.TARO_ENV == 'rn' && <Modal transparent={true}>
|
|
|
<View style={{ backgroundColor: 'rgba(0,0,0,0.95)', width: '100%', height: '100%', alignItems: 'center', justifyContent: 'center' }}>
|
|
|
{alertPop()}
|
|
|
</View>
|