commit | author | age
|
bc5e1e
|
1 |
//平台类型 |
X |
2 |
const platforms = [{ |
|
3 |
value : 1, |
|
4 |
name : 'DY', |
|
5 |
packageName : 'com.ss.android.ugc.aweme', |
|
6 |
platform : '抖音' |
|
7 |
}, { |
|
8 |
value : 2, |
|
9 |
name : 'XHS', |
|
10 |
packageName : 'com.xingin.xhs', |
|
11 |
platform : '小红书' |
|
12 |
}, { |
|
13 |
value : 3, |
|
14 |
name : 'KS', |
|
15 |
packageName : 'com.smile.gifmaker', |
|
16 |
platform : '快手' |
b2d3f7
|
17 |
},{ |
P |
18 |
value : 4, |
|
19 |
name : 'BAIDU', |
|
20 |
packageName : 'com.baidu.searchbox', |
|
21 |
platform : '百度' |
|
22 |
},{ |
|
23 |
value : 5, |
|
24 |
name : 'QQBROWSER', |
|
25 |
packageName : 'com.tencent.mtt', |
|
26 |
platform : 'QQ浏览器' |
bc5e1e
|
27 |
}]; |
X |
28 |
|
|
29 |
//操作类型 |
|
30 |
const types = [{ |
|
31 |
value : 1, |
|
32 |
name : '脚本启动' |
|
33 |
}, { |
|
34 |
value : 2, |
|
35 |
name : '脚本运行结束' |
|
36 |
}, { |
|
37 |
value : 3, |
|
38 |
name : '应用启动' |
|
39 |
}, { |
|
40 |
value : 4, |
|
41 |
name : '搜索' |
|
42 |
}, { |
|
43 |
value : 5, |
|
44 |
name : '浏览作品' |
|
45 |
}, { |
|
46 |
value : 6, |
|
47 |
name : '点赞作品' |
|
48 |
}, { |
|
49 |
value : 7, |
|
50 |
name : '收藏作品' |
|
51 |
}, { |
|
52 |
value : 8, |
|
53 |
name : '分享作品' |
|
54 |
}, { |
|
55 |
value : 9, |
|
56 |
name : '评论作品' |
|
57 |
}, { |
|
58 |
value : 10, |
|
59 |
name : '点赞评论' |
|
60 |
}, { |
|
61 |
value : 11, |
|
62 |
name : '回复评论' |
|
63 |
}, { |
|
64 |
value : 12, |
|
65 |
name : '浏览主页' |
|
66 |
}, { |
|
67 |
value : 13, |
|
68 |
name : '关注' |
|
69 |
}, { |
|
70 |
value : 14, |
|
71 |
name : '发私信' |
|
72 |
}, { |
|
73 |
value : 15, |
|
74 |
name : '视频翻页' |
|
75 |
}, { |
|
76 |
value : 16, |
|
77 |
name : '脚本异常' |
|
78 |
}, { |
|
79 |
value : 17, |
|
80 |
name : '命中关键词' |
|
81 |
}, { |
|
82 |
value : 18, |
|
83 |
name : '评论翻页' |
|
84 |
}, { |
|
85 |
value : 19, |
|
86 |
name : '处理异常' |
|
87 |
}]; |
|
88 |
|
|
89 |
|
|
90 |
//异常类型 |
|
91 |
const errorType = [{ |
|
92 |
value : 1, |
|
93 |
name : '未找到有效评论' |
|
94 |
}, { |
|
95 |
value : 2, |
|
96 |
name : '未找到有效作品' |
|
97 |
}, { |
|
98 |
value : 3, |
|
99 |
name : '搜索受限' |
|
100 |
}, { |
|
101 |
value : 4, |
|
102 |
name : '搜索失败' |
|
103 |
}, { |
|
104 |
value : 5, |
|
105 |
name : '滑块验证' |
|
106 |
}, { |
|
107 |
value : 6, |
|
108 |
name : '脚本结束' |
|
109 |
}, { |
|
110 |
value : 7, |
|
111 |
name : '无响应' |
|
112 |
}, { |
|
113 |
value : 8, |
|
114 |
name : '其他' |
|
115 |
}]; |
|
116 |
|
|
117 |
|
|
118 |
//弹窗按钮 |
|
119 |
const alertText = [{ |
|
120 |
platform : 1, |
|
121 |
text : ["以后再说","拒绝", "知道了", "关闭", "点击重播", "同意", "允许", |
|
122 |
"暂不", "暂时不要", "我知道了", "取消", "仅使用期间允许"] |
|
123 |
}, { |
|
124 |
platform : 2, |
|
125 |
text : ["下次再说", "稍后再说", "同意"] |
|
126 |
}, { |
|
127 |
platform : 3, |
|
128 |
text : ["以后再说", "我知道了", "知道了", "同意并继续", "稍后", "忽略", "取消", "点击重播"] |
b2d3f7
|
129 |
}, { |
P |
130 |
platform : 4, |
|
131 |
text : ["以后再说", "我知道了", "知道了", "同意并继续", "稍后", "忽略", "取消", "点击重播"] |
bc5e1e
|
132 |
}]; |
X |
133 |
|
|
134 |
|
|
135 |
//平台scheme |
|
136 |
const schemes = [{ |
|
137 |
platform : 1, |
|
138 |
scheme : { "search" : "snssdk1128://search/result?keyword=" } |
|
139 |
}, { |
|
140 |
platform : 2, |
|
141 |
scheme : { "search" : "xhsdiscover://search/result?keyword=" } |
|
142 |
}, { |
|
143 |
platform : 3, |
|
144 |
scheme : { "search" : "kwai://search/result?keyword=" } |
b2d3f7
|
145 |
},{ |
P |
146 |
platform : 4, |
|
147 |
scheme : { "search" : "baiduboxapp://search/result?keyword="} |
bc5e1e
|
148 |
}]; |
X |
149 |
|
|
150 |
|
|
151 |
module.exports = { platforms : platforms, types : types, schemes : schemes, alertText : alertText, errorType : errorType } |