MCPcopy Create free account
hub / github.com/Semporia/Scripts / taroRequest

Function taroRequest

jd_joy_run.js:580–685  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

578
579
580function taroRequest(e) {
581 const a = $.isNode() ? require('crypto-js') : CryptoJS;
582 const i = "98c14c997fde50cc18bdefecfd48ceb7"
583 const o = a.enc.Utf8.parse(i)
584 const r = a.enc.Utf8.parse("ea653f4f3c5eda12");
585 let _o = {
586 "AesEncrypt": function AesEncrypt(e) {
587 var n = a.enc.Utf8.parse(e);
588 return a.AES.encrypt(n, o, {
589 "iv": r,
590 "mode": a.mode.CBC,
591 "padding": a.pad.Pkcs7
592 }).ciphertext.toString()
593 },
594 "AesDecrypt": function AesDecrypt(e) {
595 var n = a.enc.Hex.parse(e)
596 , t = a.enc.Base64.stringify(n);
597 return a.AES.decrypt(t, o, {
598 "iv": r,
599 "mode": a.mode.CBC,
600 "padding": a.pad.Pkcs7
601 }).toString(a.enc.Utf8).toString()
602 },
603 "Base64Encode": function Base64Encode(e) {
604 var n = a.enc.Utf8.parse(e);
605 return a.enc.Base64.stringify(n)
606 },
607 "Base64Decode": function Base64Decode(e) {
608 return a.enc.Base64.parse(e).toString(a.enc.Utf8)
609 },
610 "Md5encode": function Md5encode(e) {
611 return a.MD5(e).toString()
612 },
613 "keyCode": "98c14c997fde50cc18bdefecfd48ceb7"
614 }
615
616 const c = function sortByLetter(e, n) {
617 if (e instanceof Array) {
618 n = n || [];
619 for (var t = 0; t < e.length; t++)
620 n[t] = sortByLetter(e[t], n[t])
621 } else
622 !(e instanceof Array) && e instanceof Object ? (n = n || {},
623 Object.keys(e).sort().map(function(t) {
624 n[t] = sortByLetter(e[t], n[t])
625 })) : n = e;
626 return n
627 }
628 const s = function isInWhiteAPI(e) {
629 for (var n = ["gift", "pet"], t = !1, a = 0; a < n.length; a++) {
630 var i = n[a];
631 e.includes(i) && !t && (t = !0)
632 }
633 return t
634 }
635
636 const d = function addQueryToPath(e, n) {
637 if (n && Object.keys(n).length > 0) {

Callers 4

enterRoomFunction · 0.70
helpInviteFriendFunction · 0.70
combatHelpFunction · 0.70
combatDetailFunction · 0.70

Calls 5

cFunction · 0.70
sFunction · 0.70
dFunction · 0.70
lFunction · 0.70
isNodeMethod · 0.45

Tested by

no test coverage detected