UNPKG

egg-minifapp

Version:

对接各种小程序之类app的sdk

1 lines 3.5 kB
'use strict';const a1_0x4296db=a1_0x373b;(function(_0x144fa0,_0x382858){const _0x3319a6=a1_0x373b,_0x5d97fd=_0x144fa0();while(!![]){try{const _0x4e23cb=parseInt(_0x3319a6(0x112))/0x1*(parseInt(_0x3319a6(0x11e))/0x2)+-parseInt(_0x3319a6(0x119))/0x3*(-parseInt(_0x3319a6(0x10e))/0x4)+-parseInt(_0x3319a6(0x11b))/0x5*(-parseInt(_0x3319a6(0x107))/0x6)+-parseInt(_0x3319a6(0x120))/0x7*(-parseInt(_0x3319a6(0x102))/0x8)+-parseInt(_0x3319a6(0x10c))/0x9*(parseInt(_0x3319a6(0x110))/0xa)+parseInt(_0x3319a6(0x106))/0xb+parseInt(_0x3319a6(0x116))/0xc*(-parseInt(_0x3319a6(0x108))/0xd);if(_0x4e23cb===_0x382858)break;else _0x5d97fd['push'](_0x5d97fd['shift']());}catch(_0x2e556f){_0x5d97fd['push'](_0x5d97fd['shift']());}}}(a1_0x323d,0x4fe86));function a1_0x373b(_0x2fc147,_0x56d194){const _0x323dae=a1_0x323d();return a1_0x373b=function(_0x373b43,_0x4a9de8){_0x373b43=_0x373b43-0x100;let _0x1ed63f=_0x323dae[_0x373b43];return _0x1ed63f;},a1_0x373b(_0x2fc147,_0x56d194);}var __awaiter=this&&this['__awaiter']||function(_0x325f23,_0x4a5b89,_0x342977,_0xfb17be){function _0x586cab(_0x4880a1){return _0x4880a1 instanceof _0x342977?_0x4880a1:new _0x342977(function(_0x5960a5){_0x5960a5(_0x4880a1);});}return new(_0x342977||(_0x342977=Promise))(function(_0x3a692b,_0x46acb2){const _0x201d7a=a1_0x373b;function _0x574f9c(_0x15e035){const _0x331018=a1_0x373b;try{_0x495dfb(_0xfb17be[_0x331018(0x118)](_0x15e035));}catch(_0x5bb118){_0x46acb2(_0x5bb118);}}function _0x504d78(_0x145df8){const _0x34c3b1=a1_0x373b;try{_0x495dfb(_0xfb17be[_0x34c3b1(0x101)](_0x145df8));}catch(_0x4cd24c){_0x46acb2(_0x4cd24c);}}function _0x495dfb(_0x2e335c){const _0x583298=a1_0x373b;_0x2e335c[_0x583298(0x121)]?_0x3a692b(_0x2e335c[_0x583298(0x10d)]):_0x586cab(_0x2e335c[_0x583298(0x10d)])[_0x583298(0x10a)](_0x574f9c,_0x504d78);}_0x495dfb((_0xfb17be=_0xfb17be[_0x201d7a(0x115)](_0x325f23,_0x4a5b89||[]))['next']());});};Object[a1_0x4296db(0x105)](exports,a1_0x4296db(0x11c),{'value':!![]}),exports[a1_0x4296db(0x11a)]=void 0x0;const base_1=require(a1_0x4296db(0x103)),alipay_sdk_1=require('alipay-sdk'),alimini_url=a1_0x4296db(0x104);function a1_0x323d(){const _0x1cfd75=['curl','POST','throw','8dvrNtJ','./base','https://openapi.alipay.com','defineProperty','6905371TiQSzK','248544tkzaRH','13IoUSyU','alipayPublicKey','then','Base','2229147eLlOKT','value','7932dPwlKC','AlipaySdk','10ZdyUPD','/v3/alipay/system/oauth/token','331ViGABF','alipay_get_userinfo','支付宝返回错误为:','apply','12601896emUXiS','privateKey','next','201FBszNc','alimini','30gApNyK','__esModule','redis_options','3278hgvBHg','appid','514276RMAJei','done'];a1_0x323d=function(){return _0x1cfd75;};return a1_0x323d();}class alimini extends base_1[a1_0x4296db(0x10b)]{constructor(_0x1c4ed9){const _0x51124e=a1_0x4296db;super(),this['appid']=_0x1c4ed9[_0x51124e(0x11f)],this[_0x51124e(0x117)]=_0x1c4ed9[_0x51124e(0x117)],this[_0x51124e(0x109)]=_0x1c4ed9['alipayPublicKey'],this['redisconfig']=_0x1c4ed9[_0x51124e(0x11d)];}[a1_0x4296db(0x113)](_0x4f4679){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1c3d83=a1_0x373b;try{const _0x567c3c=new alipay_sdk_1[(_0x1c3d83(0x10f))]({'appId':this[_0x1c3d83(0x11f)],'alipayPublicKey':this[_0x1c3d83(0x109)],'privateKey':this['privateKey']}),_0x45ecdb=yield _0x567c3c[_0x1c3d83(0x122)](_0x1c3d83(0x100),_0x1c3d83(0x111),{'body':{'grant_type':'authorization_code','code':_0x4f4679}});return _0x45ecdb;}catch(_0x2788b1){throw new Error(_0x1c3d83(0x114)+_0x2788b1);}});}}exports[a1_0x4296db(0x11a)]=alimini;