forked from angreman/WALL.E
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
34 lines (32 loc) · 930 Bytes
/
test.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
const {Env} = require('./magic');
const $ = new Env('MTest');
$.logic = async function () {
let activityContent = {
"result": true,
"data": {
"id": "173f89d8cc6d413e81a357b07137d56d",
"userId": 197936,
"venderType": 0,
"endTime": 1649381820000,
"list": [{
"type": "dq",
"takeNum": null,
"discount": "20",
"quota": "499"
}],
"hasFollow": false,
"openCard": false,
"shopMember": false,
"shopgiftActivity": null
},
"count": 0,
"errorMessage": ""
}
$.content = activityContent.data.list
let ts = $.content.filter(o => ['jd', 'jf'].includes(o.type));
if (ts.length === 0) {
$.putMsg(`不是豆子或积分不跑`);
}
};
$.run({whitelist: [1]})
.catch(reason => $.log(reason));