|
@@ -23,10 +23,24 @@ const errorRouterSqlSender = new MysqlSender(config.table.error); |
|
@@ -23,10 +23,24 @@ const errorRouterSqlSender = new MysqlSender(config.table.error); |
23
|
const perfReportSqlSender = new MysqlSender(config.table.perf);
|
23
|
const perfReportSqlSender = new MysqlSender(config.table.perf);
|
24
|
|
24
|
|
25
|
function handleClientError(scope, item) {
|
25
|
function handleClientError(scope, item) {
|
|
|
26
|
+ // 无效数据
|
26
|
if (!/cdn.yoho.cn/.test(item.sc)) {
|
27
|
if (!/cdn.yoho.cn/.test(item.sc)) {
|
27
|
return;
|
28
|
return;
|
28
|
}
|
29
|
}
|
29
|
|
30
|
|
|
|
31
|
+ if (!item.msg) {
|
|
|
32
|
+ return;
|
|
|
33
|
+ }
|
|
|
34
|
+
|
|
|
35
|
+ if (item.msg.toLowerCase() === 'script error') {
|
|
|
36
|
+ return;
|
|
|
37
|
+ }
|
|
|
38
|
+
|
|
|
39
|
+ if (item.msg.toLowerCase().charCodeAt(0) < 'a'.charCodeAt(0) ||
|
|
|
40
|
+ item.msg.toLowerCase().charCodeAt(0) > 'z'.charCodeAt(0)) {
|
|
|
41
|
+ return;
|
|
|
42
|
+ }
|
|
|
43
|
+
|
30
|
let data = {
|
44
|
let data = {
|
31
|
tags: {
|
45
|
tags: {
|
32
|
app: scope.app,
|
46
|
app: scope.app,
|