| 1 |
- const _0x2a5d=['catch','shift','getUserData','data','msg','substr','use\x20strict','__esModule','session_code','cc_version','plugin_id','cs_version','session/code','1028','lang','&0c234adac31fdec28ac45df0b1c42d532b06321c','status','session/token','getLang','127.0.0.1','md5','session_id','__importDefault','post','account/client_signin?session_id=','&redirect_url=','getSessionToken','getCreatorVersion','session_token','https://creator-api.cocos.com/api/','../utils/editor','objectSortByKey','is_refresh_token','default','paramEncode','then','parse','../utils/http','stringify','push'];(function(_0x39f7be,_0x5b352e){const _0x2a5de6=function(_0x5d8c81){while(--_0x5d8c81){_0x39f7be['push'](_0x39f7be['shift']());}};_0x2a5de6(++_0x5b352e);}(_0x2a5d,0x1e1));const _0x5d8c=function(_0x39f7be,_0x5b352e){_0x39f7be=_0x39f7be-0x8d;let _0x2a5de6=_0x2a5d[_0x39f7be];return _0x2a5de6;};const _0x120f80=_0x5d8c,_0x1701=[_0x120f80(0x98),_0x120f80(0x95),_0x120f80(0xa3),_0x120f80(0xa4),'apiPost',_0x120f80(0x8f),_0x120f80(0xa0),_0x120f80(0x9b),_0x120f80(0xa8),_0x120f80(0xa7),'find',_0x120f80(0x9a),_0x120f80(0xa9),_0x120f80(0x94),_0x120f80(0xa1),'__esModule','parseParamter',_0x120f80(0xab),_0x120f80(0xa5),_0x120f80(0xad),_0x120f80(0xaf),_0x120f80(0x90),_0x120f80(0x9e),_0x120f80(0x99),_0x120f80(0xa6),_0x120f80(0x9d),_0x120f80(0xb0),_0x120f80(0xac),'defineProperty',_0x120f80(0xb2),_0x120f80(0x9c),_0x120f80(0x97),_0x120f80(0x8e)];(function(_0xc39b90,_0x524923){const _0x1b6b6f=function(_0x3bc65e){const _0x40bdbb=_0x5d8c;while(--_0x3bc65e){_0xc39b90[_0x40bdbb(0xb3)](_0xc39b90[_0x40bdbb(0x8d)]());}};_0x1b6b6f(++_0x524923);}(_0x1701,0x1cf));const _0x5f4e=function(_0x45dc38,_0x1fe4bc){_0x45dc38=_0x45dc38-0x6c;let _0x569144=_0x1701[_0x45dc38];return _0x569144;},_0x297524=_0x5f4e;_0x120f80(0x92);var __importDefault=this&&this[_0x120f80(0xa2)]||function(_0x3f288f){const _0x59976e=_0x120f80;return _0x3f288f&&_0x3f288f[_0x59976e(0x93)]?_0x3f288f:{'default':_0x3f288f};};Object[_0x297524(0x87)](exports,_0x297524(0x7a),{'value':!0x0});const editor_1=__importDefault(require(_0x120f80(0xaa))),http_1=__importDefault(require(_0x120f80(0xb1))),domain=_0x297524(0x77),not_require_token_urls=[_0x120f80(0x98),_0x120f80(0x9d),'service/lists'];exports[_0x297524(0x7e)]={'is_refresh_token':!0x1,'session_token':'','parseParamter':function(_0x72644b){const _0x2b55a5=_0x120f80,_0x2a5166=_0x297524;let _0x1953e7=JSON[_0x2a5166(0x85)](JSON[_0x2a5166(0x88)](_0x72644b));_0x1953e7[_0x2b55a5(0x96)]=_0x2a5166(0x82),_0x1953e7['ip']=_0x2b55a5(0x9f),_0x1953e7[_0x2a5166(0x76)]=editor_1[_0x2a5166(0x7e)][_0x2a5166(0x81)](),_0x1953e7[_0x2a5166(0x8a)]=editor_1[_0x2a5166(0x7e)]['getServiceVersion'](),_0x1953e7[_0x2a5166(0x6c)]=editor_1[_0x2a5166(0x7e)][_0x2a5166(0x74)](),_0x1953e7['cs_require']='3x',_0x1953e7=http_1[_0x2a5166(0x7e)][_0x2a5166(0x7c)](_0x1953e7);let _0x1f8624=http_1[_0x2a5166(0x7e)][_0x2b55a5(0xae)](_0x1953e7)+_0x2a5166(0x72);return _0x1953e7['sign']=require(_0x2a5166(0x71))(_0x1f8624[_0x2b55a5(0x91)](0x1)),_0x1953e7;},'apiPost':async function(_0x3f9bad,_0x693046={}){const _0x5305b7=_0x297524;return void 0x0===not_require_token_urls[_0x5305b7(0x75)](_0x3d74d2=>_0x3d74d2===_0x3f9bad)&&(''===this[_0x5305b7(0x73)]&&await this['getSessionToken'](),_0x693046[_0x5305b7(0x73)]=this[_0x5305b7(0x73)]),new Promise((_0x667bbc,_0x140e3d)=>{const _0xa9c869=_0x5d8c,_0x5e67e1=_0x5305b7;http_1[_0x5e67e1(0x7e)][_0x5e67e1(0x6d)](domain+_0x3f9bad,this[_0x5e67e1(0x7b)](_0x693046))[_0x5e67e1(0x7f)](async _0x2f2254=>{const _0x2e5126=_0x5d8c,_0x3c86a2=_0x5e67e1;0x0===_0x2f2254[_0x2e5126(0x9c)]?_0x667bbc(_0x2f2254[_0x3c86a2(0x70)]):0x196===_0x2f2254['status']?(this[_0x3c86a2(0x86)]=!0x0,await this[_0x3c86a2(0x83)]()):(_0x2f2254[_0x2e5126(0x9c)],_0x140e3d({'status':_0x2f2254[_0x3c86a2(0x89)],'msg':_0x2f2254[_0x3c86a2(0x80)],'path':_0x3f9bad}));})[_0xa9c869(0xb4)](_0x140e3d);});},'getSessionToken':async function(){const _0x58a12e=_0x120f80,_0x2399d3=_0x297524;let _0x967df4=await editor_1[_0x2399d3(0x7e)][_0x2399d3(0x8b)](),_0x3c9b94=await this[_0x2399d3(0x6f)](_0x2399d3(0x8c),{'session_id':_0x967df4[_0x2399d3(0x79)]}),_0x239f24=await this[_0x2399d3(0x6f)](_0x2399d3(0x84),{'session_code':_0x3c9b94[_0x2399d3(0x78)]});this[_0x2399d3(0x73)]=_0x239f24[_0x58a12e(0xa8)];},'getRedirectUrl':async function(_0x4d97b){const _0x3b86a4=_0x297524;let _0x5e4966=await editor_1[_0x3b86a4(0x7e)][_0x3b86a4(0x8b)]();return domain+_0x3b86a4(0x6e)+_0x5e4966[_0x3b86a4(0x79)]+_0x3b86a4(0x7d)+encodeURIComponent(_0x4d97b);}};
|