mirror of
https://github.com/shufflewzc/faker3.git
synced 2025-07-08 06:39:10 +08:00
Initial commit
This commit is contained in:
34
test.js
Normal file
34
test.js
Normal file
@ -0,0 +1,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));
|
Reference in New Issue
Block a user