Initial project files: BESCMS full source

This commit is contained in:
bes
2026-08-13 23:37:46 +08:00
parent fa6cddb540
commit 2e26f85723
2166 changed files with 396625 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
// 3天清理一次系统缓存
if (!is_file(WRITEPATH.'config/run_auto_pay_time.php')) {
$time = SYS_TIME;
file_put_contents(WRITEPATH.'config/run_auto_pay_time.php', $time);
} else {
$time = file_get_contents(WRITEPATH.'config/run_auto_pay_time.php');
}
// 3天清理一次系统缓存
if (SYS_TIME - $time > 3600 * 24 * 3) {
// 未付款的清理
\Phpcmf\Service::M('pay', 'pay')->clear_paylog();
file_put_contents(WRITEPATH.'config/run_auto_pay_time.php', SYS_TIME);
}