-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathqx2.js
47 lines (42 loc) · 1.15 KB
/
qx2.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
if ($response.statusCode != 200) {
$done(null);
}
const emojis= ['🆘','🈲','⚠️','🔞','📵','🚦','🏖','🖥','📺','🐧','🐬','🦉','🍄','⛳️','🚴','🤑','👽','🤖','🎃', '👺', '👁', '🐶', '🐼','🐌', '👥']
var city0 = "高谭市";
var isp0 = "Cross-GFW.org";
function getRandomInt(max) {
return Math.floor(Math.random() * Math.floor(max));
}
function City_ValidCheck(para) {
if(para) {
return para
} else
{
return city0
//emojis[getRandomInt(emojis.length)]
}
}
function ISP_ValidCheck(para) {
if(para) {
return para
} else
{
return isp0
//emojis[getRandomInt(emojis.length)]
}
}
function Area_check(para) {
if(para=="中华民国"){
return "台湾"
} else
{
return para
}
}
var body = $response.body;
var obj = JSON.parse(body);
var title = '浅殇酱°';//+Area_check(obj['country']);
var subtitle = '“爱意随风起 风止爱难平 晚风也思你”';
var ip = obj['query'];
var description = '服务商:'+obj['isp'] + '\n'+'地区:' +City_ValidCheck(obj['regionName'])+ '\n' + 'IP:'+ obj['query'] + '\n' +'时区:'+ obj['timezone'];
$done({title, subtitle, ip, description});