esoftplay 0.0.116-u → 0.0.116-v
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/modules/lib/curl.ts +6 -6
- package/package.json +1 -1
package/modules/lib/curl.ts
CHANGED
|
@@ -152,7 +152,7 @@ export default class ecurl {
|
|
|
152
152
|
this.cancelTimeout()
|
|
153
153
|
let resText = await res.text()
|
|
154
154
|
if (res.status == 200 && resText == "") {
|
|
155
|
-
if (onFailed) onFailed("Koneksi internet kamu tidak stabil, silahkan coba
|
|
155
|
+
if (onFailed) onFailed("Koneksi internet kamu tidak stabil, silahkan coba lagi", false)
|
|
156
156
|
return
|
|
157
157
|
}
|
|
158
158
|
this.onFetched(resText,
|
|
@@ -165,7 +165,7 @@ export default class ecurl {
|
|
|
165
165
|
}).catch((r) => {
|
|
166
166
|
this.cancelTimeout()
|
|
167
167
|
LibProgress.hide()
|
|
168
|
-
LibToastProperty.show('Koneksi internet kamu tidak stabil, silahkan coba
|
|
168
|
+
LibToastProperty.show('Koneksi internet kamu tidak stabil, silahkan coba lagi')
|
|
169
169
|
this.onFetchFailed(r)
|
|
170
170
|
})
|
|
171
171
|
}
|
|
@@ -354,7 +354,7 @@ export default class ecurl {
|
|
|
354
354
|
this.resStatus = res.status
|
|
355
355
|
let resText = await res.text()
|
|
356
356
|
if (res.status == 200 && resText == "") {
|
|
357
|
-
if (onFailed) onFailed("Koneksi internet kamu tidak stabil, silahkan coba
|
|
357
|
+
if (onFailed) onFailed("Koneksi internet kamu tidak stabil, silahkan coba lagi", false)
|
|
358
358
|
return
|
|
359
359
|
}
|
|
360
360
|
this.onFetched(resText, onDone, onFailed, debug)
|
|
@@ -365,7 +365,7 @@ export default class ecurl {
|
|
|
365
365
|
this.maxRetry = this.maxRetry - 1
|
|
366
366
|
}, 100);
|
|
367
367
|
} else {
|
|
368
|
-
LibToastProperty.show("Koneksi internet kamu tidak stabil, silahkan coba
|
|
368
|
+
LibToastProperty.show("Koneksi internet kamu tidak stabil, silahkan coba lagi")
|
|
369
369
|
}
|
|
370
370
|
this.onFetchFailed(r)
|
|
371
371
|
LibProgress.hide()
|
|
@@ -404,10 +404,10 @@ export default class ecurl {
|
|
|
404
404
|
ltext.includes('error')
|
|
405
405
|
) {
|
|
406
406
|
// reportApiError(this.fetchConf.options, resText)
|
|
407
|
-
out = 'Terjadi kesalahan, biar ' + esp.appjson()?.expo?.name + ' bereskan, silahkan coba
|
|
407
|
+
out = 'Terjadi kesalahan, biar ' + esp.appjson()?.expo?.name + ' bereskan, silahkan coba lagi atau kembali ke halaman utama'
|
|
408
408
|
}
|
|
409
409
|
if (ltext.includes('timeout exceeded')) {
|
|
410
|
-
out = 'Koneksi internet kamu tidak stabil, silahkan coba
|
|
410
|
+
out = 'Koneksi internet kamu tidak stabil, silahkan coba lagi'
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
return out
|