Commit 6dffb6adf0601e2611e06f38d5f53692b2997006

Authored by wangfan
1 parent bb06a062

api.rollbar.com 域名未备案,不能绑小程序

1 var mta=require('mta-wechat-analysis') 1 var mta=require('mta-wechat-analysis')
2 var uri_dc = require('utils/uri.js') 2 var uri_dc = require('utils/uri.js')
3 global.regeneratorRuntime = require('lib/regenerator/runtime-module') 3 global.regeneratorRuntime = require('lib/regenerator/runtime-module')
  4 +import rollbar from 'utils/rollbar'
4 5
5 const { regeneratorRuntime } = global 6 const { regeneratorRuntime } = global
6 Array.prototype._indexOf = function (val) { 7 Array.prototype._indexOf = function (val) {
@@ -35,7 +36,6 @@ App({ @@ -35,7 +36,6 @@ App({
35 this.getSystemInfo(); 36 this.getSystemInfo();
36 this.openid=await this.getOpenid(); 37 this.openid=await this.getOpenid();
37 console.log('this.openid',this.openid,mta); 38 console.log('this.openid',this.openid,mta);
38 -  
39 }, 39 },
40 onShow:async function(){ 40 onShow:async function(){
41 if (wx.canIUse('getUpdateManager')) { 41 if (wx.canIUse('getUpdateManager')) {
@@ -187,5 +187,8 @@ App({ @@ -187,5 +187,8 @@ App({
187 } 187 }
188 }, 188 },
189 }) 189 })
190 - } 190 + },
  191 + onError(e){
  192 + console.log('--onError--',e)
  193 + },
191 }) 194 })
1 { 1 {
2 "description": "项目配置文件。", 2 "description": "项目配置文件。",
3 "setting": { 3 "setting": {
4 - "urlCheck": false, 4 + "urlCheck": true,
5 "es6": true, 5 "es6": true,
6 "postcss": true, 6 "postcss": true,
7 "minified": true, 7 "minified": true,
@@ -166,7 +166,7 @@ function __api() { @@ -166,7 +166,7 @@ function __api() {
166 } 166 }
167 } 167 }
168 //console.log(tmpApi[keys[0]]); 168 //console.log(tmpApi[keys[0]]);
169 - tmpApi[keys[0]].rollbar=rollbar; 169 + //return {...getApp(),...tmpApi[keys[0]]};
170 return tmpApi[keys[0]]; 170 return tmpApi[keys[0]];
171 } 171 }
172 function cache(key, val = -99999, timeout = -1) { 172 function cache(key, val = -99999, timeout = -1) {