fix fix fix

This commit is contained in:
2026-03-25 21:19:58 +08:00
parent b63c00d251
commit 0d168c9046
10 changed files with 91 additions and 68 deletions

View File

@@ -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>
);