diff --git a/polyfill/base64Binary.js b/polyfill/base64Binary.js index 7d7ec04..10a3e53 100644 --- a/polyfill/base64Binary.js +++ b/polyfill/base64Binary.js @@ -20,7 +20,7 @@ const _fromCC = String.fromCharCode.bind(String); * polyfill version of `btoa` */ const btoaPolyfill = (bin) => { - // console.log('polyfilled'); + let u32, c0, c1, c2, asc = '' const pad = bin.length % 3 for (let i = 0;i < bin.length;) { @@ -41,7 +41,7 @@ const btoaPolyfill = (bin) => { * polyfill version of `atob` */ const atobPolyfill = (asc) => { - // console.log('polyfilled'); + asc = asc.replace(/\s+/g, '') if (!b64re.test(asc)) throw new TypeError('malformed base64.') diff --git a/polyfill/polyfill.js b/polyfill/polyfill.js index 9297b1c..e77b4fb 100644 --- a/polyfill/polyfill.js +++ b/polyfill/polyfill.js @@ -971,7 +971,7 @@ function routerPolyfill () { if (res.errMsg.indexOf('tabbar page') > -1) { console.error('res.errMsg' + res.errMsg) var apiName = res.errMsg.match(/not\s(\w+)\sa/)[1] - console.log(apiName) + var url = options.url if (url) { var queryString = url.split('?')[1] @@ -1019,7 +1019,7 @@ function init () { if (isInit) return isInit = true - console.log("Api polyfill start") + //条件编译 platformPolyfill() //登录