Authored by 邱骏

隐藏闲鱼中的头部下载

@@ -216,7 +216,7 @@ try { @@ -216,7 +216,7 @@ try {
216 app.use(ifElseMd(isOpenApmRisk, riskManagementApm(), riskManagement())); 216 app.use(ifElseMd(isOpenApmRisk, riskManagementApm(), riskManagement()));
217 app.use(statics(app)); 217 app.use(statics(app));
218 218
219 - require('./dispatch')(app); 219 + require('./dispatch')(app); // 路由重写
220 app.all('*', errorHanlder.notFound()); // 404 220 app.all('*', errorHanlder.notFound()); // 404
221 221
222 // YOHO 后置中间件 222 // YOHO 后置中间件
@@ -618,6 +618,7 @@ class featureModel extends global.yoho.BaseModel { @@ -618,6 +618,7 @@ class featureModel extends global.yoho.BaseModel {
618 }; 618 };
619 619
620 return this.get({data}).then(result => { 620 return this.get({data}).then(result => {
  621 + console.log(result);
621 if (!result) { 622 if (!result) {
622 result.code = 404; 623 result.code = 404;
623 result.message = '出错啦~'; 624 result.message = '出错啦~';
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 a.async = 1; 12 a.async = 1;
13 a.src = j; 13 a.src = j;
14 m.parentNode.insertBefore(a, m); // '//cdn.yoho.cn/yas-jssdk/2.4.20/yas.js' 14 m.parentNode.insertBefore(a, m); // '//cdn.yoho.cn/yas-jssdk/2.4.20/yas.js'
15 - }(window, document, 'script', (document.location.protocol === 'https:' ? 'https:' : 'http:') + '//cdn.yoho.cn/yas-jssdk/2.4.22/yas.js', '_yas')); 15 + }(window, document, 'script', (document.location.protocol === 'https:' ? 'https:' : 'http:') + '//cdn.yoho.cn/yas-jssdk/2.4.24/yas.js', '_yas'));
16 16
17 var _hmt = _hmt || []; 17 var _hmt = _hmt || [];
18 18
@@ -157,6 +157,7 @@ class SmsLoginNew extends Page { @@ -157,6 +157,7 @@ class SmsLoginNew extends Page {
157 mobile: phone 157 mobile: phone
158 } 158 }
159 }).then(res => { 159 }).then(res => {
  160 +
160 if (res.code === 200) { 161 if (res.code === 200) {
161 checkPoint('YB_MOBILE_LOGIN_C'); // 埋点 162 checkPoint('YB_MOBILE_LOGIN_C'); // 埋点
162 163