Clash/script/dingdong/README.md
2022-09-15 21:46:16 +08:00

73 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 🧸叮咚买菜
叮咚买菜每日自动签到
## 配置说明
### Surge
安装模块
```ini
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.sgmodule
```
### Loon
安装插件
```ini
[Remote Script]
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.lnplugin
```
### Quantumult X
配置文件
```ini
[rewrite_remote]
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.qxrewrite, tag=叮咚买菜_获取Cookie, enabled=true
[task_local]
20 10 * * * https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.js, tag=叮咚买菜_每日签到, enabled=true
```
## 获取Cookie
叮咚买菜APP - 我的 - 右上角签到
## 多账户
目前无法在单台iPhone/iPad设备上实现多账户执行每日签到。
多账户更多的作用是在多设备的情况下将Cookies和坐标同步至青龙面板由青龙面板执行多账户作业。
## 脚本变量
根据下表配置magic.json文件的内容
| 名称 | 类型 | 说明 |
| ----------------------------- | ---- | -------------------------------------- |
| dingdongmaicai_checkin_cookie | Json | 多账户叮咚买菜Cookies |
| dingdongmaicai_checkin_body | Json | 多账户叮咚买菜Body |
| dingdongmaicai_sync_qinglong | Bool | 是否将获取的Cookie和Body同步至青龙面板 |
部分属性示例
```json
{
"dingdongmaicai_checkin_cookie": {
"magic_session": true,
"user_id1": "cookie_1",
"user_id2": "cookie_2"
},
"dingdongmaicai_checkin_body":{
"magic_session": true,
"user_id1": "body_1",
"user_id2": "body_2"
}
}
```