Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sy-records/discuz-dsu
Discuz! 论坛的DSU每日签到自动脚本
https://github.com/sy-records/discuz-dsu
auto-sign discuz dsu
Last synced: about 1 month ago
JSON representation
Discuz! 论坛的DSU每日签到自动脚本
- Host: GitHub
- URL: https://github.com/sy-records/discuz-dsu
- Owner: sy-records
- License: gpl-3.0
- Created: 2018-08-03T04:00:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-03T13:52:46.000Z (almost 5 years ago)
- Last Synced: 2024-11-01T10:51:31.314Z (about 2 months ago)
- Topics: auto-sign, discuz, dsu
- Language: PHP
- Size: 20.5 KB
- Stars: 37
- Watchers: 2
- Forks: 24
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# discuz-dsu
`Discuz!`论坛的`DSU`签到系统自动签到脚本
## 使用方式
1、补充对应参数
```php
$user = ''; //用户名
$pwd = ''; //密码
$baseUrl = ''; //论坛首页地址 结尾带上”/”
$key = ''; // 方糖key 地址:http://sc.ftqq.com/?c=code//心情:开心,难过,郁闷,无聊,怒,擦汗,奋斗,慵懒,衰
//{"kx","ng","ym","wl","nu","ch","fd","yl","shuai"};
$qdxq = 'kx'; //签到时使用的心情
$todaysay = "沈唁志 https://qq52o.me"; //想说的话
```
2、手动执行或定时执行* 手动执行
```bash
# cli 模式下执行
$ php dsuSign.php
```* Web访问
将`dsuSign.php`放到可访问的网站目录中,通过浏览器访问`http://yourdomain.com/dsuSign.php`
* 定时执行
使用`Linux`的定时任务执行,如`crontab`等
```bash
# crontab -e
0 0 * * * php /www/wwwroot/dsuSign.php >> /tmp/dsuSign.log 2>&1
```