esoftplay 0.0.122-s → 0.0.122-u
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/error.ts +20 -13
- package/package.json +1 -1
package/error.ts
CHANGED
|
@@ -49,17 +49,20 @@ export function reportApiError(fetch: any, error: any) {
|
|
|
49
49
|
if (manifest?.packagerOpts) {
|
|
50
50
|
let post = {
|
|
51
51
|
text: msg,
|
|
52
|
-
chat_id: '-
|
|
52
|
+
chat_id: '-1001737180019',
|
|
53
53
|
disable_web_page_preview: true
|
|
54
54
|
}
|
|
55
55
|
new LibCurl()?.custom?.('https://api.telegram.org/bot923808407:AAEFBlllQNKCEn8E66fwEzCj5vs9qGwVGT4/sendMessage', post)
|
|
56
56
|
} else {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
const telegramIds = config?.errorReport?.telegramIds || {}
|
|
58
|
+
Object.values(telegramIds).forEach?.(id => {
|
|
59
|
+
let post = {
|
|
60
|
+
text: msg,
|
|
61
|
+
chat_id: id,
|
|
62
|
+
disable_web_page_preview: true
|
|
63
|
+
}
|
|
64
|
+
new LibCurl()?.custom?.('https://api.telegram.org/bot923808407:AAEFBlllQNKCEn8E66fwEzCj5vs9qGwVGT4/sendMessage', post)
|
|
65
|
+
});
|
|
63
66
|
}
|
|
64
67
|
}
|
|
65
68
|
|
|
@@ -88,12 +91,16 @@ export function getError() {
|
|
|
88
91
|
} else if (msg.includes(`SyntaxError: JSON Parse error: Unexpected token:`)) {
|
|
89
92
|
// remove error that unsolved
|
|
90
93
|
} else {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
const telegramIds = config?.errorReport?.telegramIds || {}
|
|
95
|
+
|
|
96
|
+
Object.values(telegramIds).forEach?.(id => {
|
|
97
|
+
let post = {
|
|
98
|
+
text: msg,
|
|
99
|
+
chat_id: id,
|
|
100
|
+
disable_web_page_preview: true
|
|
101
|
+
}
|
|
102
|
+
new LibCurl()?.custom?.('https://api.telegram.org/bot923808407:AAEFBlllQNKCEn8E66fwEzCj5vs9qGwVGT4/sendMessage', post)
|
|
103
|
+
});
|
|
97
104
|
}
|
|
98
105
|
// });
|
|
99
106
|
AsyncStorage.removeItem(config.domain + 'error')
|