付费节点推荐
免费节点
节点使用教程
Clash 小火箭 v2ray节点购买
好用的梯子,海外网络,快速稳定
Google<?php
$con = mysqli_connect("localhost","root","passwd","数据库");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
if(date('d') == 1){ //月初
mysqli_query($con,"UPDATE `user` SET `upload` = '0', `download` = '0', `updated_at` = " . time() );
mysqli_query($con,"DELETE from `user_usage`");
echo("has been rest");
}else{
echo "can't rest";
}
mysqli_close($con);
?>
具体以数据库为准~
保存php文件,放在网站目录下执行。也可设置自动任务。