esoftplay 0.0.110-a → 0.0.110-e
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 +3 -3
- package/package.json +1 -1
package/modules/lib/curl.ts
CHANGED
|
@@ -286,7 +286,7 @@ export default class ecurl {
|
|
|
286
286
|
...this.header,
|
|
287
287
|
["Content-Type"]: "application/x-www-form-urlencoded;charset=UTF-8"
|
|
288
288
|
},
|
|
289
|
-
data: this.post,
|
|
289
|
+
data: !this.post ? undefined : this.post,
|
|
290
290
|
Cache: "no-store",
|
|
291
291
|
Pragma: "no-cache",
|
|
292
292
|
['Cache-Control']: "no-store",
|
|
@@ -345,7 +345,7 @@ export default class ecurl {
|
|
|
345
345
|
url: this.url + this.uri,
|
|
346
346
|
method: !this.post ? "GET" : "POST",
|
|
347
347
|
headers: this.header,
|
|
348
|
-
data: this.post,
|
|
348
|
+
data: !this.post ? undefined : this.post,
|
|
349
349
|
cancelToken: this.abort.token,
|
|
350
350
|
cache: "no-store",
|
|
351
351
|
Pragma: "no-cache",
|
|
@@ -392,7 +392,7 @@ export default class ecurl {
|
|
|
392
392
|
let out = resText
|
|
393
393
|
if (!esp.isDebug('')) {
|
|
394
394
|
if (resText.toLowerCase().includes('failed') || resText.toLowerCase().includes('code')) {
|
|
395
|
-
reportApiError(this.fetchConf.options, resText)
|
|
395
|
+
// reportApiError(this.fetchConf.options, resText)
|
|
396
396
|
out = 'Terjadi kesalahan, biar ' + esp.appjson()?.expo?.name + ' bereskan, silahkan coba beberapa saat lagi.'
|
|
397
397
|
}
|
|
398
398
|
}
|