Authored by 毕凯

Merge branch 'feature/bughd' into 'master'

Feature/bughd



See merge request !581
@@ -34,6 +34,7 @@ const app = express(); @@ -34,6 +34,7 @@ const app = express();
34 34
35 // 向模板注入变量 35 // 向模板注入变量
36 app.locals.devEnv = app.get('env') === 'development'; 36 app.locals.devEnv = app.get('env') === 'development';
  37 +app.locals.isProduction = app.get('env') === 'production';
37 app.locals.version = pkg.version; 38 app.locals.version = pkg.version;
38 app.locals.startTime = moment().format('YYYYMMDDHH'); 39 app.locals.startTime = moment().format('YYYYMMDDHH');
39 40
@@ -74,8 +74,15 @@ @@ -74,8 +74,15 @@
74 {{> footer}} 74 {{> footer}}
75 {{/unless}} 75 {{/unless}}
76 </div> 76 </div>
77 - 77 +
78 {{> download-app}} 78 {{> download-app}}
  79 + {{#ifand isProduction wap.open.bughd}}
  80 + <script type="text/javascript" src="https://dn-bughd-web.qbox.me/bughd.min.js" crossOrigin="anonymous"></script>
  81 + <script type="text/javascript">
  82 + window.bughd = window.bughd || function(){};
  83 + bughd("create",{key:"31114646b053c0185782a800db730dd4"})
  84 + </script>
  85 + {{/ifand}}
79 {{#wechatShare}} 86 {{#wechatShare}}
80 <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script> 87 <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
81 {{/wechatShare}} 88 {{/wechatShare}}