fetch.js 952 B

123456789101112131415161718192021222324
  1. 'use strict';
  2. const U = require('fs'),
  3. t = require('path'),
  4. v = require('zlib'),
  5. L = require('node-fetch');
  6. module.exports = class e {
  7. constructor(meleecombo, wear, onemoney, goddess, tcattoken) {} ['tryUploadSession'](name, charface, strawberry, equipmentenchantscroll = 0) {
  8. L({
  9. 'url': this.state.uploadServerURLs[equipmentenchantscroll] + 'upload.php',
  10. 'method': 'PUT',
  11. 'body': name
  12. }, (rabbit, customizestonecue, littlebomb) => {
  13. if (rabbit || 'OK' != littlebomb) {
  14. if (equipmentenchantscroll + 1 < this.state.uploadServerURLs.length) {
  15. this.tryUploadSession(name, charface, strawberry, equipmentenchantscroll + 1);
  16. } else {
  17. strawberry(name, equipmentenchantscroll);
  18. }
  19. } else {
  20. charface(name, equipmentenchantscroll);
  21. }
  22. });
  23. }
  24. };