BruceOuyang / issuelist

用于记录日常碰到的各种问题和经验总结 (请看Issues)
4 stars 2 forks source link

Mac 定时任务 #76

Open BruceOuyang opened 3 years ago

BruceOuyang commented 3 years ago

mac 的定时任务由 launchctl 管理。

基本步骤:

1、准备要执行的脚本 2、准备定时任务描述文件 3、启动定时任务

示例:

1、准备要执行的脚本

cd ~

# 创建脚本 & 日志文件
vim test.sh
touch test.log

# 输入如下内容后保存
#!/bin/sh
echo "hello"

2、准备定时任务的描述文件

定时任务的描述文件放置在特定的目录位置,有开机就执行,有用户登录后执行,还有一些用户自定义的(请自行查阅资料)
这里使用用户自定义的目录 ~/Libaray/LaunchAgents


cd ~/Libaray/LaunchAgents

创建描述文件

vim com.demo.plist

输入如下内容并保存

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

Label com.demo.plist ProgramArguments /Users/bruce.ouyang/vote.sh StartCalendarInterval Minute 8 Hour 2 Minute 8 Hour 2 StandardOutPath /Users/bruce.ouyang/vote.log StandardErrorPath /Users/bruce.ouyang/vote.log

### 3、启动定时任务

加载描述文件

launchctl load -w com.demo.plist

启动定时任务

launchctl start -w com.demo.plist


若描述文件有修改,在修改完毕后需做如下操作

launchctl stop -w com.demo.plist launchctl unload -w com.demo.plist launchctl load -w com.demo.plist launchctl start -w com.demo.plist

BruceOuyang commented 3 years ago

刷票任务描述文件内容

每小时的第30分钟执行一次

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- Label唯一的标识 -->
<key>Label</key>
<string>com.demo.plist</string>
<!-- 指定要运行的脚本 -->
<key>ProgramArguments</key>
<array>
<string>/Users/bruce.ouyang/vote.sh</string>
</array>
<!-- 指定要运行的时间 -->
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Minute</key>
<integer>30</integer>
</dict>
</array>
<!-- 标准输出文件 -->
<key>StandardOutPath</key>
<string>/Users/bruce.ouyang/vote.log</string>
<!-- 标准错误输出文件,错误日志 -->
<key>StandardErrorPath</key>
<string>/Users/bruce.ouyang/vote.log</string>
</dict>
</plist>

注意:以上文件内容中的部分路径需要配置成自己电脑上的路径

BruceOuyang commented 3 years ago

刷票脚本 vote.sh

#!/bin/sh
source /etc/profile
/Users/bruce.ouyang/.nvm/versions/node/v10.19.0/bin/newman run /Users/bruce.ouyang/vote2cc.json -n 5

注意,以上脚本内容需要替换成自己机器上的地址

要求本地安装了 newman ,安装命令 npm install -g newman
查看本地安装的 newman 地址,使用命令 which newman

BruceOuyang commented 3 years ago

vote2cc.json 文件内容

{
    "id": "81a5ae3e-380d-acca-e6bb-a119df74484d",
    "name": "给 Cc 投票",
    "description": "",
    "order": [
        "4e66b239-de49-1475-9d5a-b795bf0fd168",
        "5432ab64-46e2-6039-1fe3-87a363598e29",
        "50dcb36c-debb-436f-cbd1-388f7a30b22b",
        "fcfc11b3-2da2-0de2-9582-bfe59186c040",
        "9a880e90-bef6-3230-b606-c74e3d3e7825",
        "e8bfb17d-132d-dbc1-36b4-31a630ed9252",
        "811d8742-b272-23fa-5818-d72cc18a065d",
        "649bcf8d-5b00-e55b-35aa-044f6cdad876",
        "063c82da-f7f2-86a8-858b-f4911e7464ef",
        "b179a97d-d332-cfb5-1232-7961f4bd1d15",
        "d9c81dca-f29c-4545-8597-aeabf3e1263d",
        "295de4ff-db7a-7b24-523b-4bf747f379b0",
        "27f3d6ab-a8c1-f870-1731-14e17228bf7a",
        "6da471d7-fd04-0dc5-f225-e699485d5d4e",
        "b84034c2-0a71-4d23-c0a7-9ddbbf133657",
        "19010320-5231-b5ed-28d2-98b271e6465e",
        "0e755af5-96ba-fe89-bb1a-679b074b42b7",
        "0232d811-26f2-0ad3-a49f-76468bd40f6e",
        "b2573461-b648-8162-edae-bba11725886e",
        "ef05c0d8-1d9a-10ea-8412-987e81ee9177",
        "d16a6b0d-6d2c-f9ac-5569-f447f53cf9db"
    ],
    "folders": [],
    "folders_order": [],
    "timestamp": 0,
    "owner": "903176",
    "public": false,
    "requests": [
        {
            "id": "0232d811-26f2-0ad3-a49f-76468bd40f6e",
            "headers": "",
            "headerData": [],
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=1&orderid=3&mainid=1553457576&openid=5963574F1FFA09F1DF88F159000FBF03B797B07D&istrue=0&_=1625358680747",
            "queryParams": [
                {
                    "key": "type",
                    "value": "1",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "orderid",
                    "value": "3",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "mainid",
                    "value": "1553457576",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "openid",
                    "value": "5963574F1FFA09F1DF88F159000FBF03B797B07D",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "istrue",
                    "value": "0",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "_",
                    "value": "1625358680747",
                    "equals": true,
                    "description": "",
                    "enabled": true
                }
            ],
            "preRequestScript": null,
            "pathVariables": {},
            "pathVariableData": [],
            "method": "GET",
            "data": [],
            "dataMode": "params",
            "tests": null,
            "currentHelper": "normal",
            "helperAttributes": {},
            "time": 1624380214029,
            "name": "Cc 给 Cc 投票type1",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "responses": []
        },
        {
            "id": "063c82da-f7f2-86a8-858b-f4911e7464ef",
            "name": "Allen 给 Cc 投票type1",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "method": "GET",
            "headers": "",
            "data": [],
            "rawModeData": "",
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=1&orderid=3&mainid=1553457576&openid=452879DB2F9923E97FD396EEA5165A86809D0F2E&istrue=0&_=1624358377840",
            "responses": [],
            "pathVariableData": [],
            "queryParams": [
                {
                    "key": "type",
                    "value": "1"
                },
                {
                    "key": "orderid",
                    "value": "3"
                },
                {
                    "key": "mainid",
                    "value": "1553457576"
                },
                {
                    "key": "openid",
                    "value": "452879DB2F9923E97FD396EEA5165A86809D0F2E"
                },
                {
                    "key": "istrue",
                    "value": "0"
                },
                {
                    "key": "_",
                    "value": "1624358377840"
                }
            ],
            "headerData": [],
            "collection_id": "81a5ae3e-380d-acca-e6bb-a119df74484d"
        },
        {
            "id": "0e755af5-96ba-fe89-bb1a-679b074b42b7",
            "headers": "",
            "headerData": [],
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=2&orderid=3&mainid=1553457576&openid=5963574F1FFA09F1DF88F159000FBF03B797B07D&istrue=0&_=1625358680747",
            "queryParams": [
                {
                    "key": "type",
                    "value": "2",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "orderid",
                    "value": "3",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "mainid",
                    "value": "1553457576",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "openid",
                    "value": "5963574F1FFA09F1DF88F159000FBF03B797B07D",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "istrue",
                    "value": "0",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "_",
                    "value": "1625358680747",
                    "equals": true,
                    "description": "",
                    "enabled": true
                }
            ],
            "preRequestScript": null,
            "pathVariables": {},
            "pathVariableData": [],
            "method": "GET",
            "data": [],
            "dataMode": "params",
            "tests": null,
            "currentHelper": "normal",
            "helperAttributes": {},
            "time": 1624380197432,
            "name": "Cc 给 Cc 投票type2",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "responses": []
        },
        {
            "id": "19010320-5231-b5ed-28d2-98b271e6465e",
            "headers": "",
            "headerData": [],
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=3&orderid=3&mainid=1553457576&openid=5963574F1FFA09F1DF88F159000FBF03B797B07D&istrue=0&_=1625358680747",
            "queryParams": [
                {
                    "key": "type",
                    "value": "3",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "orderid",
                    "value": "3",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "mainid",
                    "value": "1553457576",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "openid",
                    "value": "5963574F1FFA09F1DF88F159000FBF03B797B07D",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "istrue",
                    "value": "0",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "_",
                    "value": "1625358680747",
                    "equals": true,
                    "description": "",
                    "enabled": true
                }
            ],
            "preRequestScript": null,
            "pathVariables": {},
            "pathVariableData": [],
            "method": "GET",
            "data": [],
            "dataMode": "params",
            "tests": null,
            "currentHelper": "normal",
            "helperAttributes": {},
            "time": 1624380176827,
            "name": "Cc 给 Cc 投票type3",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "responses": []
        },
        {
            "id": "27f3d6ab-a8c1-f870-1731-14e17228bf7a",
            "headers": "",
            "headerData": [],
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=1&orderid=3&mainid=1553457576&openid=885A03C84BA5CC8B450D058F8708212D8A731BEB&istrue=0&_=1625358680747",
            "queryParams": [
                {
                    "key": "type",
                    "value": "1",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "orderid",
                    "value": "3",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "mainid",
                    "value": "1553457576",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "openid",
                    "value": "885A03C84BA5CC8B450D058F8708212D8A731BEB",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "istrue",
                    "value": "0",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "_",
                    "value": "1625358680747",
                    "equals": true,
                    "description": "",
                    "enabled": true
                }
            ],
            "preRequestScript": null,
            "pathVariables": {},
            "pathVariableData": [],
            "method": "GET",
            "data": [],
            "dataMode": "params",
            "tests": null,
            "currentHelper": "normal",
            "helperAttributes": {},
            "time": 1624380100422,
            "name": "蚊子 给 Cc 投票type1",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "responses": []
        },
        {
            "id": "295de4ff-db7a-7b24-523b-4bf747f379b0",
            "headers": "",
            "headerData": [],
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=1&orderid=3&mainid=1553457576&openid=BDD02977A02909F33CB5D4924626E6FD7FB811EC&istrue=0&_=1624358680747",
            "queryParams": [
                {
                    "key": "type",
                    "value": "1",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "orderid",
                    "value": "3",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "mainid",
                    "value": "1553457576",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "openid",
                    "value": "BDD02977A02909F33CB5D4924626E6FD7FB811EC",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "istrue",
                    "value": "0",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "_",
                    "value": "1624358680747",
                    "equals": true,
                    "description": "",
                    "enabled": true
                }
            ],
            "preRequestScript": null,
            "pathVariables": {},
            "pathVariableData": [],
            "method": "GET",
            "data": [],
            "dataMode": "params",
            "tests": null,
            "currentHelper": "normal",
            "helperAttributes": {},
            "time": 1624379566591,
            "name": "Will 给 Cc 投票type1",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "responses": []
        },
        {
            "id": "4e66b239-de49-1475-9d5a-b795bf0fd168",
            "name": "Bruce 给 Cc 投票type1",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "method": "GET",
            "headers": "",
            "data": [],
            "rawModeData": "",
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=1&orderid=3&mainid=1553457576&openid=64F68B5C2DC00E5F9E81F9B5C4D25D00D2285207&istrue=0&_=1624353965841",
            "responses": [],
            "pathVariableData": [],
            "queryParams": [
                {
                    "key": "type",
                    "value": "1"
                },
                {
                    "key": "orderid",
                    "value": "3"
                },
                {
                    "key": "mainid",
                    "value": "1553457576"
                },
                {
                    "key": "openid",
                    "value": "64F68B5C2DC00E5F9E81F9B5C4D25D00D2285207"
                },
                {
                    "key": "istrue",
                    "value": "0"
                },
                {
                    "key": "_",
                    "value": "1624353965841"
                }
            ],
            "headerData": [],
            "collection_id": "81a5ae3e-380d-acca-e6bb-a119df74484d"
        },
        {
            "id": "50dcb36c-debb-436f-cbd1-388f7a30b22b",
            "name": "Bruce 给 Cc 投票type3",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "method": "GET",
            "headers": "",
            "data": [],
            "rawModeData": "",
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=3&orderid=3&mainid=1553457576&openid=64F68B5C2DC00E5F9E81F9B5C4D25D00D2285207&istrue=0&_=1624353965841",
            "responses": [],
            "pathVariableData": [],
            "queryParams": [
                {
                    "key": "type",
                    "value": "3"
                },
                {
                    "key": "orderid",
                    "value": "3"
                },
                {
                    "key": "mainid",
                    "value": "1553457576"
                },
                {
                    "key": "openid",
                    "value": "64F68B5C2DC00E5F9E81F9B5C4D25D00D2285207"
                },
                {
                    "key": "istrue",
                    "value": "0"
                },
                {
                    "key": "_",
                    "value": "1624353965841"
                }
            ],
            "headerData": [],
            "collection_id": "81a5ae3e-380d-acca-e6bb-a119df74484d"
        },
        {
            "id": "5432ab64-46e2-6039-1fe3-87a363598e29",
            "name": "Bruce 给 Cc 投票type2",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "method": "GET",
            "headers": "",
            "data": [],
            "rawModeData": "",
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=2&orderid=3&mainid=1553457576&openid=64F68B5C2DC00E5F9E81F9B5C4D25D00D2285207&istrue=0&_=1624353965841",
            "responses": [],
            "pathVariableData": [],
            "queryParams": [
                {
                    "key": "type",
                    "value": "2"
                },
                {
                    "key": "orderid",
                    "value": "3"
                },
                {
                    "key": "mainid",
                    "value": "1553457576"
                },
                {
                    "key": "openid",
                    "value": "64F68B5C2DC00E5F9E81F9B5C4D25D00D2285207"
                },
                {
                    "key": "istrue",
                    "value": "0"
                },
                {
                    "key": "_",
                    "value": "1624353965841"
                }
            ],
            "headerData": [],
            "collection_id": "81a5ae3e-380d-acca-e6bb-a119df74484d"
        },
        {
            "id": "649bcf8d-5b00-e55b-35aa-044f6cdad876",
            "name": "Allen 给 Cc 投票type2",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "method": "GET",
            "headers": "",
            "data": [],
            "rawModeData": "",
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=2&orderid=3&mainid=1553457576&openid=452879DB2F9923E97FD396EEA5165A86809D0F2E&istrue=0&_=1624358377840",
            "responses": [],
            "pathVariableData": [],
            "queryParams": [
                {
                    "key": "type",
                    "value": "2"
                },
                {
                    "key": "orderid",
                    "value": "3"
                },
                {
                    "key": "mainid",
                    "value": "1553457576"
                },
                {
                    "key": "openid",
                    "value": "452879DB2F9923E97FD396EEA5165A86809D0F2E"
                },
                {
                    "key": "istrue",
                    "value": "0"
                },
                {
                    "key": "_",
                    "value": "1624358377840"
                }
            ],
            "headerData": [],
            "collection_id": "81a5ae3e-380d-acca-e6bb-a119df74484d"
        },
        {
            "id": "6da471d7-fd04-0dc5-f225-e699485d5d4e",
            "headers": "",
            "headerData": [],
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=2&orderid=3&mainid=1553457576&openid=885A03C84BA5CC8B450D058F8708212D8A731BEB&istrue=0&_=1625358680747",
            "queryParams": [
                {
                    "key": "type",
                    "value": "2",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "orderid",
                    "value": "3",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "mainid",
                    "value": "1553457576",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "openid",
                    "value": "885A03C84BA5CC8B450D058F8708212D8A731BEB",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "istrue",
                    "value": "0",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "_",
                    "value": "1625358680747",
                    "equals": true,
                    "description": "",
                    "enabled": true
                }
            ],
            "preRequestScript": null,
            "pathVariables": {},
            "pathVariableData": [],
            "method": "GET",
            "data": [],
            "dataMode": "params",
            "tests": null,
            "currentHelper": "normal",
            "helperAttributes": {},
            "time": 1624380125168,
            "name": "蚊子 给 Cc 投票type2",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "responses": []
        },
        {
            "id": "811d8742-b272-23fa-5818-d72cc18a065d",
            "name": "Allen 给 Cc 投票type3",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "method": "GET",
            "headers": "",
            "data": [],
            "rawModeData": "",
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=3&orderid=3&mainid=1553457576&openid=452879DB2F9923E97FD396EEA5165A86809D0F2E&istrue=0&_=1624358377840",
            "responses": [],
            "pathVariableData": [],
            "queryParams": [
                {
                    "key": "type",
                    "value": "3"
                },
                {
                    "key": "orderid",
                    "value": "3"
                },
                {
                    "key": "mainid",
                    "value": "1553457576"
                },
                {
                    "key": "openid",
                    "value": "452879DB2F9923E97FD396EEA5165A86809D0F2E"
                },
                {
                    "key": "istrue",
                    "value": "0"
                },
                {
                    "key": "_",
                    "value": "1624358377840"
                }
            ],
            "headerData": [],
            "collection_id": "81a5ae3e-380d-acca-e6bb-a119df74484d"
        },
        {
            "id": "9a880e90-bef6-3230-b606-c74e3d3e7825",
            "name": "Momo 给 Cc 投票type2",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "method": "GET",
            "headers": "",
            "data": [],
            "rawModeData": "",
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=2&orderid=3&mainid=1553457576&openid=95D22B086C71F45117477D7CDDBE9A7E3515FBAF&istrue=0&_=1624357843702",
            "responses": [],
            "pathVariableData": [],
            "queryParams": [
                {
                    "key": "type",
                    "value": "2"
                },
                {
                    "key": "orderid",
                    "value": "3"
                },
                {
                    "key": "mainid",
                    "value": "1553457576"
                },
                {
                    "key": "openid",
                    "value": "95D22B086C71F45117477D7CDDBE9A7E3515FBAF"
                },
                {
                    "key": "istrue",
                    "value": "0"
                },
                {
                    "key": "_",
                    "value": "1624357843702"
                }
            ],
            "headerData": [],
            "collection_id": "81a5ae3e-380d-acca-e6bb-a119df74484d"
        },
        {
            "id": "b179a97d-d332-cfb5-1232-7961f4bd1d15",
            "name": "Will 给 Cc 投票type3",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "method": "GET",
            "headers": "",
            "data": [],
            "rawModeData": "",
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=3&orderid=3&mainid=1553457576&openid=BDD02977A02909F33CB5D4924626E6FD7FB811EC&istrue=0&_=1624358680747",
            "responses": [],
            "pathVariableData": [],
            "queryParams": [
                {
                    "key": "type",
                    "value": "3"
                },
                {
                    "key": "orderid",
                    "value": "3"
                },
                {
                    "key": "mainid",
                    "value": "1553457576"
                },
                {
                    "key": "openid",
                    "value": "BDD02977A02909F33CB5D4924626E6FD7FB811EC"
                },
                {
                    "key": "istrue",
                    "value": "0"
                },
                {
                    "key": "_",
                    "value": "1624358680747"
                }
            ],
            "headerData": [],
            "collection_id": "81a5ae3e-380d-acca-e6bb-a119df74484d"
        },
        {
            "id": "b2573461-b648-8162-edae-bba11725886e",
            "headers": "",
            "headerData": [],
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=1&orderid=3&mainid=1553457576&openid=3B301C0A2271670D06B29EB04E969A7EC8C7047B&istrue=0&_=1625358680747",
            "queryParams": [
                {
                    "key": "type",
                    "value": "1",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "orderid",
                    "value": "3",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "mainid",
                    "value": "1553457576",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "openid",
                    "value": "3B301C0A2271670D06B29EB04E969A7EC8C7047B",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "istrue",
                    "value": "0",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "_",
                    "value": "1625358680747",
                    "equals": true,
                    "description": "",
                    "enabled": true
                }
            ],
            "preRequestScript": null,
            "pathVariables": {},
            "pathVariableData": [],
            "method": "GET",
            "data": [],
            "dataMode": "params",
            "tests": null,
            "currentHelper": "normal",
            "helperAttributes": {},
            "time": 1624380241995,
            "name": "老曾 给 Cc 投票type1",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "responses": []
        },
        {
            "id": "b84034c2-0a71-4d23-c0a7-9ddbbf133657",
            "headers": "",
            "headerData": [],
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=3&orderid=3&mainid=1553457576&openid=885A03C84BA5CC8B450D058F8708212D8A731BEB&istrue=0&_=1625358680747",
            "queryParams": [
                {
                    "key": "type",
                    "value": "3",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "orderid",
                    "value": "3",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "mainid",
                    "value": "1553457576",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "openid",
                    "value": "885A03C84BA5CC8B450D058F8708212D8A731BEB",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "istrue",
                    "value": "0",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "_",
                    "value": "1625358680747",
                    "equals": true,
                    "description": "",
                    "enabled": true
                }
            ],
            "preRequestScript": null,
            "pathVariables": {},
            "pathVariableData": [],
            "method": "GET",
            "data": [],
            "dataMode": "params",
            "tests": null,
            "currentHelper": "normal",
            "helperAttributes": {},
            "time": 1624380139867,
            "name": "蚊子 给 Cc 投票type3",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "responses": []
        },
        {
            "id": "d16a6b0d-6d2c-f9ac-5569-f447f53cf9db",
            "headers": "",
            "headerData": [],
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=3&orderid=3&mainid=1553457576&openid=3B301C0A2271670D06B29EB04E969A7EC8C7047B&istrue=0&_=1625358680747",
            "queryParams": [
                {
                    "key": "type",
                    "value": "3",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "orderid",
                    "value": "3",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "mainid",
                    "value": "1553457576",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "openid",
                    "value": "3B301C0A2271670D06B29EB04E969A7EC8C7047B",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "istrue",
                    "value": "0",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "_",
                    "value": "1625358680747",
                    "equals": true,
                    "description": "",
                    "enabled": true
                }
            ],
            "preRequestScript": null,
            "pathVariables": {},
            "pathVariableData": [],
            "method": "GET",
            "data": [],
            "dataMode": "params",
            "tests": null,
            "currentHelper": "normal",
            "helperAttributes": {},
            "time": 1624380297245,
            "name": "老曾 给 Cc 投票type3",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "responses": []
        },
        {
            "id": "d9c81dca-f29c-4545-8597-aeabf3e1263d",
            "headers": "",
            "headerData": [],
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=2&orderid=3&mainid=1553457576&openid=BDD02977A02909F33CB5D4924626E6FD7FB811EC&istrue=0&_=1624358680747",
            "queryParams": [
                {
                    "key": "type",
                    "value": "2",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "orderid",
                    "value": "3",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "mainid",
                    "value": "1553457576",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "openid",
                    "value": "BDD02977A02909F33CB5D4924626E6FD7FB811EC",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "istrue",
                    "value": "0",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "_",
                    "value": "1624358680747",
                    "equals": true,
                    "description": "",
                    "enabled": true
                }
            ],
            "preRequestScript": null,
            "pathVariables": {},
            "pathVariableData": [],
            "method": "GET",
            "data": [],
            "dataMode": "params",
            "tests": null,
            "currentHelper": "normal",
            "helperAttributes": {},
            "time": 1624379568288,
            "name": "Will 给 Cc 投票type2",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "responses": []
        },
        {
            "id": "e8bfb17d-132d-dbc1-36b4-31a630ed9252",
            "name": "Momo 给 Cc 投票type3",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "method": "GET",
            "headers": "",
            "data": [],
            "rawModeData": "",
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=3&orderid=3&mainid=1553457576&openid=95D22B086C71F45117477D7CDDBE9A7E3515FBAF&istrue=0&_=1624357951989",
            "responses": [],
            "pathVariableData": [],
            "queryParams": [
                {
                    "key": "type",
                    "value": "3"
                },
                {
                    "key": "orderid",
                    "value": "3"
                },
                {
                    "key": "mainid",
                    "value": "1553457576"
                },
                {
                    "key": "openid",
                    "value": "95D22B086C71F45117477D7CDDBE9A7E3515FBAF"
                },
                {
                    "key": "istrue",
                    "value": "0"
                },
                {
                    "key": "_",
                    "value": "1624357951989"
                }
            ],
            "headerData": [],
            "collection_id": "81a5ae3e-380d-acca-e6bb-a119df74484d"
        },
        {
            "id": "ef05c0d8-1d9a-10ea-8412-987e81ee9177",
            "headers": "",
            "headerData": [],
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=2&orderid=3&mainid=1553457576&openid=3B301C0A2271670D06B29EB04E969A7EC8C7047B&istrue=0&_=1625358680747",
            "queryParams": [
                {
                    "key": "type",
                    "value": "2",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "orderid",
                    "value": "3",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "mainid",
                    "value": "1553457576",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "openid",
                    "value": "3B301C0A2271670D06B29EB04E969A7EC8C7047B",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "istrue",
                    "value": "0",
                    "equals": true,
                    "description": "",
                    "enabled": true
                },
                {
                    "key": "_",
                    "value": "1625358680747",
                    "equals": true,
                    "description": "",
                    "enabled": true
                }
            ],
            "preRequestScript": null,
            "pathVariables": {},
            "pathVariableData": [],
            "method": "GET",
            "data": [],
            "dataMode": "params",
            "tests": null,
            "currentHelper": "normal",
            "helperAttributes": {},
            "time": 1624380280783,
            "name": "老曾 给 Cc 投票type2",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "responses": []
        },
        {
            "id": "fcfc11b3-2da2-0de2-9582-bfe59186c040",
            "name": "Momo 给 Cc 投票type1",
            "description": "",
            "collectionId": "81a5ae3e-380d-acca-e6bb-a119df74484d",
            "method": "GET",
            "headers": "",
            "data": [],
            "rawModeData": "",
            "url": "http://jia3.tmsf.com/hzf/festival_vote.jspx?type=1&orderid=3&mainid=1553457576&openid=95D22B086C71F45117477D7CDDBE9A7E3515FBAF&istrue=0&_=1624357843702",
            "responses": [],
            "pathVariableData": [],
            "queryParams": [
                {
                    "key": "type",
                    "value": "1"
                },
                {
                    "key": "orderid",
                    "value": "3"
                },
                {
                    "key": "mainid",
                    "value": "1553457576"
                },
                {
                    "key": "openid",
                    "value": "95D22B086C71F45117477D7CDDBE9A7E3515FBAF"
                },
                {
                    "key": "istrue",
                    "value": "0"
                },
                {
                    "key": "_",
                    "value": "1624357843702"
                }
            ],
            "headerData": [],
            "collection_id": "81a5ae3e-380d-acca-e6bb-a119df74484d"
        }
    ]
}
seweide commented 3 years ago

你这个json 太复杂了,冗余