feat:初始化项目

This commit is contained in:
dengtongyu committed 2021-08-23 22:05:46 +08:00
commit ca52cf1bc0
486 files changed
+56656

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pingpp=e()}}(function(){return function e(n,t,a){function r(l,o){if(!t[l]){if(!n[l]){var c="function"==typeof require&&require;if(!o&&c)return c(l,!0);if(i)return i(l,!0);var s=new Error("Cannot find module '"+l+"'");throw s.code="MODULE_NOT_FOUND",s}var d=t[l]={exports:{}};n[l][0].call(d.exports,function(e){var t=n[l][1][e];return r(t||e)},d,d.exports,e,n,t,a)}return t[l].exports}for(var i="function"==typeof require&&require,l=0;l<a.length;l++)r(a[l]);return r}({1:[function(e,n,t){var a=e('./payment_elements.js');n.exports={userCallback:void 0,innerCallback:function(e,n){'function'==typeof this.userCallback&&(void 0===n&&(n=this.error()),this.userCallback(e,n),this.userCallback=void 0,a.clear())},error:function(e,n){return e=void 0===e?'':e,n=void 0===n?'':n,{msg:e,extra:n}}}},{"./payment_elements.js":26}],2:[function(e,n,t){var a=e('../utils'),r={}.hasOwnProperty;n.exports={ALIPAY_PC_DIRECT_URL:'https://mapi.alipay.com/gateway.do',handleCharge:function(e){var n=e.channel,t=e.credential[n],i=this.ALIPAY_PC_DIRECT_URL;r.call(t,'channel_url')&&(i=t.channel_url),r.call(t,'_input_charset')||r.call(t,'service')&&'create_direct_pay_by_user'===t.service&&(t._input_charset='utf-8');var l=a.stringifyData(t,n,!0);a.redirectTo(i+'?'+l)}}},{"../utils":29}],3:[function(e,n,t){var a={}.hasOwnProperty,r=e('../callbacks');n.exports={handleCharge:function(e){var n=e.credential[e.channel];a.call(n,'transaction_no')?this.tradePay(n.transaction_no):r.innerCallback('fail',r.error('invalid_credential','missing_field_transaction_no'))},ready:function(e){window.AlipayJSBridge?e&&e():document.addEventListener('AlipayJSBridgeReady',e,!1)},tradePay:function(e){this.ready(function(){AlipayJSBridge.call('tradePay',{tradeNO:e},function(e){'9000'==e.resultCode?r.innerCallback('success'):'6001'==e.resultCode?r.innerCallback('cancel',r.error(e.result)):r.innerCallback('fail',r.error(e.result))})})}}},{"../callbacks":1}],4:[function(e,n,t){var a=e('../utils'),r=e('../mods'),i={}.hasOwnProperty;n.exports={ALIPAY_WAP_URL_OLD:'https://wappaygw.alipay.com/service/rest.htm',ALIPAY_WAP_URL:'https://mapi.alipay.com/gateway.do',handleCharge:function(e){var n=e.channel,t=e.credential[n],l=this.ALIPAY_WAP_URL;i.call(t,'req_data')?l=this.ALIPAY_WAP_URL_OLD:i.call(t,'channel_url')&&(l=t.channel_url),i.call(t,'_input_charset')||(i.call(t,'service')&&'alipay.wap.create.direct.pay.by.user'===t.service||i.call(t,'req_data'))&&(t._input_charset='utf-8');var o=l+'?'+a.stringifyData(t,n,!0),c=r.getExtraModule('ap');a.inWeixin()&&void 0!==c?c.pay(o):a.redirectTo(o)}}},{"../mods":25,"../utils":29}],5:[function(e,n,t){var a=e('../utils'),r=e('../callbacks'),i={}.hasOwnProperty;n.exports={handleCharge:function(e){var n=e.channel,t=e.credential[n];i.call(t,'url')?a.redirectTo(t.url+'?'+a.stringifyData(t,n)):r.innerCallback('fail',r.error('invalid_credential','missing_field:url'))}}},{"../callbacks":1,"../utils":29}],6:[function(e,n,t){var a=e('../utils'),r={}.hasOwnProperty;n.exports={CMB_WALLET_URL:'https://netpay.cmbchina.com/netpayment/BaseHttp.dll?MB_EUserPay',handleCharge:function(e){var n=e.credential[e.channel],t=this.CMB_WALLET_URL;r.call(n,'ChannelUrl')&&(t=n.ChannelUrl,delete n.ChannelUrl),r.call(n,'channelVersion')&&delete n.channelVersion,a.formSubmit(t,'post',n)}}},{"../utils":29}],7:[function(e,n,t){var a=e('../../utils'),r=e('../../callbacks'),i={}.hasOwnProperty;n.exports={handleCharge:function(e){var n,t=e.credential[e.channel];if('string'==typeof t)n=t;else{if(!i.call(t,'url'))return void r.innerCallback('fail',r.error('invalid_credential','credential format is incorrect'));n=t.url}a.redirectTo(n)}}},{"../../callbacks":1,"../../utils":29}],8:[function(e,n,t){var a=e('../utils');n.exports={CP_B2B_URL:'https://payment.chinapay.com/CTITS/service/rest/page/nref/000000000017/0/0/0/0/0',handleCharge:function(e){var n=e.credential[e.channel];a.formSubmit(this.CP_B2B_URL,'post',n)}}},{"../utils":29}],9:[function(e,n,t){var a=e('../../stash'),r={}.hasOwnProperty;!function(){var e={},t={};t.PADCHAR='=',t.ALPHA='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',t.makeDOMException=function(){try{return new DOMException(DOMException.INVALID_CHARACTER_ERR)}catch(n){var e=new Error('DOM Exception 5');return e.code=e.number=5,e.name=e.description='INVALID_CHARACTER_ERR',e.toString=function(){return'Error: '+e.name+': '+e.message},e}},t.getbyte64=function(e,n){var a=t.ALPHA.indexOf(e.charAt(n));if(-1===a)throw t.makeDOMException();return a},t.decode=function(e){e=''+e;var n,a,r,i=t.getbyte64,l=e.length;if(0===l)return e;if(l%4!=0)throw t.makeDOMException();n=0,e.charAt(l-1)===t.PADCHAR&&(n=1,e.charAt(l-2)===t.PADCHAR&&(n=2),l-=4);var o=[];for(a=0;a<l;a+=4)r=i(e,a)<<18|i(e,a+1)<<12|i(e,a+2)<<6|Line truncated
//# sourceMappingURL=pingpp.js.map