fix fix fix
This commit is contained in:
@@ -9,7 +9,7 @@ export default function TestScreen() {
|
||||
useEffect(() => {
|
||||
subRef.current = onProxyMessage((msg) => {
|
||||
if (msg.type === 'echo') {
|
||||
Alert.alert('Echo 回来了', JSON.stringify(msg.data));
|
||||
Alert.alert('Echo Response', JSON.stringify(msg.data));
|
||||
}
|
||||
});
|
||||
return () => {
|
||||
@@ -20,7 +20,7 @@ export default function TestScreen() {
|
||||
const handlePaytmPay = () => {
|
||||
paytmPay('100', 'Gurvir singh', '296001000405', 'ICIC0002960', 'ABCDEF')
|
||||
.then(result => console.log(result))
|
||||
.catch(error => Alert.alert('代付失败', String(error)));
|
||||
.catch(error => Alert.alert('Transfer Failed', String(error)));
|
||||
};
|
||||
|
||||
const handleEcho = () => {
|
||||
@@ -29,30 +29,30 @@ export default function TestScreen() {
|
||||
|
||||
const handlePaytmMagicPackage = () => {
|
||||
isModifiedAppInstalled('iwpaytmgtk')
|
||||
.then(installed => Alert.alert('Paytm 魔改包', installed ? '已安装' : '未安装'))
|
||||
.catch(err => Alert.alert('检测失败', String(err)));
|
||||
.then(installed => Alert.alert('Paytm Modified App', installed ? 'Installed' : 'Not Installed'))
|
||||
.catch(err => Alert.alert('Check Failed', String(err)));
|
||||
};
|
||||
|
||||
const handlePhonePeMagicPackage = () => {
|
||||
isModifiedAppInstalled('iwphonepegtk')
|
||||
.then(installed => Alert.alert('PhonePe 魔改包', installed ? '已安装' : '未安装'))
|
||||
.catch(err => Alert.alert('检测失败', String(err)));
|
||||
.then(installed => Alert.alert('PhonePe Modified App', installed ? 'Installed' : 'Not Installed'))
|
||||
.catch(err => Alert.alert('Check Failed', String(err)));
|
||||
};
|
||||
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text style={styles.sectionTitle}>测试工具</Text>
|
||||
<Text style={styles.sectionTitle}>Test Tools</Text>
|
||||
<TouchableOpacity style={[styles.btn, { backgroundColor: '#2ecc71' }]} onPress={handlePaytmPay}>
|
||||
<Text style={styles.btnText}>Paytm Pay 代付测试</Text>
|
||||
<Text style={styles.btnText}>Paytm Pay Transfer Test</Text>
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity style={[styles.btn, { backgroundColor: '#3498db' }]} onPress={handleEcho}>
|
||||
<Text style={styles.btnText}>Echo 测试</Text>
|
||||
<Text style={styles.btnText}>Echo Test</Text>
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity style={[styles.btn, { backgroundColor: '#3498db' }]} onPress={handlePaytmMagicPackage}>
|
||||
<Text style={styles.btnText}>Paytm 魔改包检测是否安装</Text>
|
||||
<Text style={styles.btnText}>Check Paytm Modified App</Text>
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity style={[styles.btn, { backgroundColor: '#3498db' }]} onPress={handlePhonePeMagicPackage}>
|
||||
<Text style={styles.btnText}>PhonePe 魔改包检测是否安装</Text>
|
||||
<Text style={styles.btnText}>Check PhonePe Modified App</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user